From 5f76e30e55493be634abe0eb28afe57f13346bd4 Mon Sep 17 00:00:00 2001 From: Siyuan Date: Tue, 18 Nov 2025 14:49:03 +0000 Subject: [PATCH] chore: remove unused function readOtpEntropy --- hw.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/hw.go b/hw.go index 505ff698..eb68da11 100644 --- a/hw.go +++ b/hw.go @@ -31,14 +31,6 @@ func extractSerialNumber() (string, error) { return matches[1], nil } -func readOtpEntropy() ([]byte, error) { //nolint:unused - content, err := os.ReadFile("/sys/bus/nvmem/devices/rockchip-otp0/nvmem") - if err != nil { - return nil, err - } - return content[0x17:0x1C], nil -} - func hwReboot(force bool, postRebootAction *ota.PostRebootAction, delay time.Duration) error { logger.Info().Dur("delay", delay).Msg("reboot requested")