aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTim Cooper <tim.cooper@layeh.com>2018-09-27 16:55:24 -0500
committerDaniel Martí <mvdan@mvdan.cc>2018-10-06 12:11:53 +0000
commit8aee193fb8b61d474a7e3e6d43625f4e746c5b65 (patch)
tree3c15c3f8811e47bee329940a8ea434f91510943f /src
parent963776e689c4c015c89464ab4fef90ae50373f66 (diff)
downloadgo-8aee193fb8b61d474a7e3e6d43625f4e746c5b65.tar.xz
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 <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src')
-rw-r--r--src/cmd/internal/obj/x86/asm6.go2
-rw-r--r--src/crypto/rand/rand_freebsd.go2
-rw-r--r--src/strconv/atoi.go2
3 files changed, 3 insertions, 3 deletions
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) {