OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
637123a
)
target/i386/translate: avoid shadowed local variables
author
Paolo Bonzini
<pbonzini@redhat.com>
Mon, 25 Sep 2023 10:07:21 +0000
(12:07 +0200)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Tue, 26 Sep 2023 14:41:49 +0000
(16:41 +0200)
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>
target/i386/tcg/translate.c
patch
|
blob
|
history
diff --git
a/target/i386/tcg/translate.c
b/target/i386/tcg/translate.c
index
c98e42f
..
72635b8
100644
(file)
--- 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);