Skip to content

Commit

Permalink
cpu: remove the use of ioutil
Browse files Browse the repository at this point in the history
A trivial change.

Change-Id: I8121c263d5b8e9d0634d4f38847aff3cb770ef96
Reviewed-on: https://go-review.googlesource.com/c/sys/+/526301
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Kirill Kolyshkin <kolyshkin@gmail.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
  • Loading branch information
kolyshkin authored and gopherbot committed Sep 14, 2023
1 parent 5a17dda commit f3ef2d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpu/hwcap_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
package cpu

import (
"io/ioutil"
"os"
)

const (
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f3ef2d1

Please sign in to comment.