aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/ifuzz
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-07-31 12:16:54 +0200
committerDmitry Vyukov <dvyukov@google.com>2018-07-31 12:16:54 +0200
commitf5d67fbd9c633bd2e0e815ada0a8dea352ea42d4 (patch)
treef38c9fb5ab5c6f2b0b003ee20fe13bed7ea41900 /pkg/ifuzz
parentb8bd991ee2f77d225913d41c57b9a420b4559900 (diff)
.gometalinter.json: enable gofmt
The part that we want from gofmt is simplify (-s). Fix all code that needs fixing. Update #538
Diffstat (limited to 'pkg/ifuzz')
-rw-r--r--pkg/ifuzz/pseudo.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/ifuzz/pseudo.go b/pkg/ifuzz/pseudo.go
index 2d55ea266..8ca8ef8d6 100644
--- a/pkg/ifuzz/pseudo.go
+++ b/pkg/ifuzz/pseudo.go
@@ -550,9 +550,9 @@ func pciAddrPort(r *rand.Rand) (addr uint32, port uint16, size int) {
var controlRegisters = []uint8{0, 3, 4, 8}
var controlRegistersBits = map[uint8][]uint8{
- 0: []uint8{0, 1, 2, 3, 4, 5, 16, 18, 29, 30, 31},
- 3: []uint8{3, 5},
- 4: []uint8{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 13, 14, 16, 17, 18, 20, 21, 22},
+ 0: {0, 1, 2, 3, 4, 5, 16, 18, 29, 30, 31},
+ 3: {3, 5},
+ 4: {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 13, 14, 16, 17, 18, 20, 21, 22},
}
const eferMSR = 0xC0000080