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:
parent
7c8fcaef26
commit
2e62cfc89d
1 changed files with 2 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue