diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2023-09-25 12:07:21 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2023-09-26 16:41:49 +0200 |
commit | 19729affe1cd191f063db4b4d43058974cf43bc9 (patch) | |
tree | 5684d0ee05f16c9e9045ec27b7bac9f1a8c04661 | |
parent | 637123a21381b2c5833d9d663af06e3105d8caa9 (diff) |
target/i386/translate: avoid shadowed local variables
Just remove the declaration. There is nothing in the function after the
switch statement, so it is safe to do.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r-- | target/i386/tcg/translate.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/target/i386/tcg/translate.c b/target/i386/tcg/translate.c index c98e42f17a..72635b87d3 100644 --- a/target/i386/tcg/translate.c +++ b/target/i386/tcg/translate.c @@ -3242,7 +3242,7 @@ static bool disas_insn(DisasContext *s, CPUState *cpu) case 0x30 ... 0x35: case 0x38 ... 0x3d: { - int op, f, val; + int f; op = (b >> 3) & 7; f = (b >> 1) & 3; @@ -3302,8 +3302,6 @@ static bool disas_insn(DisasContext *s, CPUState *cpu) case 0x81: case 0x83: { - int val; - ot = mo_b_d(b, dflag); modrm = x86_ldub_code(env, s); |