From: Tim Cooper Date: Thu, 27 Sep 2018 21:55:24 +0000 (-0500) Subject: all: remove unneeded parentheses from package consts and vars X-Git-Tag: go1.12beta1~865 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=8aee193fb8b61d474a7e3e6d43625f4e746c5b65;p=gostls13.git all: remove unneeded parentheses from package consts and vars Change-Id: Ic7fce53c6264107c15b127d9c9ca0bec11a888ff Reviewed-on: https://go-review.googlesource.com/c/138183 Reviewed-by: Brad Fitzpatrick Run-TryBot: Brad Fitzpatrick TryBot-Result: Gobot Gobot --- diff --git a/src/cmd/internal/obj/x86/asm6.go b/src/cmd/internal/obj/x86/asm6.go index d3389e4f15..23ff7f32af 100644 --- a/src/cmd/internal/obj/x86/asm6.go +++ b/src/cmd/internal/obj/x86/asm6.go @@ -2288,7 +2288,7 @@ func instinit(ctxt *obj.Link) { } } -var isAndroid = (objabi.GOOS == "android") +var isAndroid = objabi.GOOS == "android" func prefixof(ctxt *obj.Link, a *obj.Addr) int { if a.Reg < REG_CS && a.Index < REG_CS { // fast path diff --git a/src/crypto/rand/rand_freebsd.go b/src/crypto/rand/rand_freebsd.go index b4d6653343..75f683c386 100644 --- a/src/crypto/rand/rand_freebsd.go +++ b/src/crypto/rand/rand_freebsd.go @@ -6,4 +6,4 @@ package rand // maxGetRandomRead is the maximum number of bytes to ask for in one call to the // getrandom() syscall. In FreeBSD at most 256 bytes will be returned per call. -const maxGetRandomRead = (1 << 8) +const maxGetRandomRead = 1 << 8 diff --git a/src/strconv/atoi.go b/src/strconv/atoi.go index bebed04820..bbfdb7dc39 100644 --- a/src/strconv/atoi.go +++ b/src/strconv/atoi.go @@ -44,7 +44,7 @@ const intSize = 32 << (^uint(0) >> 63) // IntSize is the size in bits of an int or uint value. const IntSize = intSize -const maxUint64 = (1<<64 - 1) +const maxUint64 = 1<<64 - 1 // ParseUint is like ParseInt but for unsigned numbers. func ParseUint(s string, base int, bitSize int) (uint64, error) {