diff options
| author | Martin Möhrmann <moehrmann@google.com> | 2017-08-06 16:15:05 +0200 |
|---|---|---|
| committer | Martin Möhrmann <moehrmann@google.com> | 2017-08-08 04:11:36 +0000 |
| commit | c4ee0e2a8b0fa493a59fc97e162dede7849cfd44 (patch) | |
| tree | 4994ad821eb572a7e49d287be9e4740f4828192c /src | |
| parent | e1f38ccab14d27b934f0ebe7282fad556a788dd6 (diff) | |
| download | go-c4ee0e2a8b0fa493a59fc97e162dede7849cfd44.tar.xz | |
internal/cpu: fix style nit in variable name
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>
Diffstat (limited to 'src')
| -rw-r--r-- | src/internal/cpu/cpu_x86.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/internal/cpu/cpu_x86.go b/src/internal/cpu/cpu_x86.go index 31e7084e78..5bbe999675 100644 --- a/src/internal/cpu/cpu_x86.go +++ b/src/internal/cpu/cpu_x86.go @@ -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 } |
