fuzz/x86emul: remove bogus check against fuzzer msr index
authorWei Liu <wei.liu2@citrix.com>
Tue, 7 Feb 2017 11:02:40 +0000 (11:02 +0000)
committerWei Liu <wei.liu2@citrix.com>
Wed, 8 Feb 2017 09:24:13 +0000 (09:24 +0000)
commit4008d7774cd951eeba907b7bfe84302abfa4377c
tree818498bbec20e2ce495c928ad3b2975e8697bb5c
parent63e1d01b8fd948b3e0fa3beea494e407668aa43b
fuzz/x86emul: remove bogus check against fuzzer msr index

The "reg" variable in fuzz_read_msr stores the real MSR index, not an
index within the fuzzer.

The rest of that function already handles things correctly. We just need
to remove the bogus check.

Spotted by Coverity.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/fuzz/x86_instruction_emulator/x86-insn-emulator-fuzzer.c