enable some more linters

This commit is contained in:
Michael McLoughlin
2018-12-05 00:49:12 -08:00
parent fa18d7229f
commit 00c50be004
4 changed files with 29 additions and 2 deletions

View File

@@ -374,8 +374,7 @@ func operand(op opcodesxml.Operand) inst.Operand {
func datasize(f opcodesxml.Form) int {
// Determine from encoding bits.
e := f.Encoding
switch {
case e.VEX != nil && e.VEX.W == nil:
if e.VEX != nil && e.VEX.W == nil {
return 128 << e.VEX.L
}