fuzz_util: Simplify result return in InstructionGenerator's Generate() function

This can just be a simple direct return without a separated declaration
and assignment.
This commit is contained in:
Lioncash 2018-11-23 19:55:27 -05:00 committed by MerryMage
parent 7c8fcaef26
commit 2e62cfc89d

View file

@ -56,8 +56,6 @@ InstructionGenerator::InstructionGenerator(const char* format){
}
u32 InstructionGenerator::Generate() const {
u32 inst;
u32 random = RandInt<u32>(0, 0xFFFFFFFF);
inst = bits | (random & ~mask);
return inst;
const u32 random = RandInt<u32>(0, 0xFFFFFFFF);
return bits | (random & ~mask);
}