]> Cypherpunks repositories - gostls13.git/commitdiff
internal/cpu: fix style nit in variable name
authorMartin Möhrmann <moehrmann@google.com>
Sun, 6 Aug 2017 14:15:05 +0000 (16:15 +0200)
committerMartin Möhrmann <moehrmann@google.com>
Tue, 8 Aug 2017 04:11:36 +0000 (04:11 +0000)
Consistent with similar change of style in the crypto repository:
http://golang.org/cl/43511

Change-Id: Ib158c52a2649dcbbe9eb92f2bdb9d289e0dcc7bf
Reviewed-on: https://go-review.googlesource.com/53474
Reviewed-by: Han-Wen Nienhuys <hanwen@google.com>
Reviewed-by: Avelino <t@avelino.xxx>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/internal/cpu/cpu_x86.go

index 31e7084e78b42ae39b519089eb0d8b200e66e2c9..5bbe9996752782c7bdf2b091fce9da394e142329 100644 (file)
@@ -15,9 +15,9 @@ func cpuid(eaxArg, ecxArg uint32) (eax, ebx, ecx, edx uint32)
 func xgetbv() (eax, edx uint32)
 
 func init() {
-       maxId, _, _, _ := cpuid(0, 0)
+       maxID, _, _, _ := cpuid(0, 0)
 
-       if maxId < 1 {
+       if maxID < 1 {
                return
        }
 
@@ -43,7 +43,7 @@ func init() {
 
        X86.HasAVX = isSet(28, ecx1) && osSupportsAVX
 
-       if maxId < 7 {
+       if maxID < 7 {
                return
        }