]> Cypherpunks repositories - gostls13.git/commitdiff
all: remove unneeded parentheses from package consts and vars
authorTim Cooper <tim.cooper@layeh.com>
Thu, 27 Sep 2018 21:55:24 +0000 (16:55 -0500)
committerDaniel Martí <mvdan@mvdan.cc>
Sat, 6 Oct 2018 12:11:53 +0000 (12:11 +0000)
Change-Id: Ic7fce53c6264107c15b127d9c9ca0bec11a888ff
Reviewed-on: https://go-review.googlesource.com/c/138183
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/cmd/internal/obj/x86/asm6.go
src/crypto/rand/rand_freebsd.go
src/strconv/atoi.go

index d3389e4f1545c750b2c3039157c91d7d5f878500..23ff7f32af70de465bf8fc8c7a112fecb7840a9e 100644 (file)
@@ -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
index b4d6653343ac4506213cc2e0d7dfa769514b45b8..75f683c386d50d3cfb5a45a995fc900b8f3cf0a0 100644 (file)
@@ -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
index bebed048204fb0eaeac57bf625987c7c2d5a2269..bbfdb7dc3934e8719234f978999d09ca4e75edd9 100644 (file)
@@ -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) {