From e151db3e065eea8a13fd2bc83aafb6959edd6fca Mon Sep 17 00:00:00 2001 From: Jes Cok Date: Mon, 28 Jul 2025 11:36:17 +0000 Subject: all: omit unnecessary type conversions Found by github.com/mdempsky/unconvert Change-Id: Ib78cceb718146509d96dbb6da87b27dbaeba1306 GitHub-Last-Rev: dedf354811701ce8920c305b6f7aa78914a4171c GitHub-Pull-Request: golang/go#74771 Reviewed-on: https://go-review.googlesource.com/c/go/+/690735 Reviewed-by: Mark Freeman LUCI-TryBot-Result: Go LUCI Reviewed-by: Keith Randall Auto-Submit: Keith Randall Reviewed-by: Keith Randall --- src/syscall/dirent.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/syscall') diff --git a/src/syscall/dirent.go b/src/syscall/dirent.go index f6e78d9bb5..c12b119335 100644 --- a/src/syscall/dirent.go +++ b/src/syscall/dirent.go @@ -33,7 +33,7 @@ func readIntBE(b []byte, size uintptr) uint64 { case 4: return uint64(byteorder.BEUint32(b)) case 8: - return uint64(byteorder.BEUint64(b)) + return byteorder.BEUint64(b) default: panic("syscall: readInt with unsupported size") } @@ -48,7 +48,7 @@ func readIntLE(b []byte, size uintptr) uint64 { case 4: return uint64(byteorder.LEUint32(b)) case 8: - return uint64(byteorder.LEUint64(b)) + return byteorder.LEUint64(b) default: panic("syscall: readInt with unsupported size") } -- cgit v1.3