From f3ef2d1cfa5ac6b4be2084b507a56b3de0292e63 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Wed, 6 Sep 2023 19:18:18 -0700 Subject: [PATCH] cpu: remove the use of ioutil A trivial change. Change-Id: I8121c263d5b8e9d0634d4f38847aff3cb770ef96 Reviewed-on: https://go-review.googlesource.com/c/sys/+/526301 Auto-Submit: Tobias Klauser TryBot-Result: Gopher Robot Reviewed-by: Tobias Klauser LUCI-TryBot-Result: Go LUCI Reviewed-by: Ian Lance Taylor Run-TryBot: Kirill Kolyshkin Reviewed-by: Dmitri Shuralyov --- cpu/hwcap_linux.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpu/hwcap_linux.go b/cpu/hwcap_linux.go index 1d9d91f3..34e49f95 100644 --- a/cpu/hwcap_linux.go +++ b/cpu/hwcap_linux.go @@ -5,7 +5,7 @@ package cpu import ( - "io/ioutil" + "os" ) const ( @@ -39,7 +39,7 @@ func readHWCAP() error { return nil } - buf, err := ioutil.ReadFile(procAuxv) + buf, err := os.ReadFile(procAuxv) if err != nil { // e.g. on android /proc/self/auxv is not accessible, so silently // ignore the error and leave Initialized = false. On some