aboutsummaryrefslogtreecommitdiff
path: root/target-sparc
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2011-09-04 11:32:23 +0000
committerBlue Swirl <blauwirbel@gmail.com>2011-09-10 14:56:01 +0000
commitde18f87eb15801b8e2aef4e5e6cde7299dc7f12b (patch)
tree77c15e7f9e4758d48856ea9abbb556a32bbef036 /target-sparc
parenta6c6f44ae4a8637e2c7394b46e2ba15f7b7682a0 (diff)
Sparc64: remove useless variable
Remove a useless variable, spotted by clang analyzer: /src/qemu/target-sparc/op_helper.c:3904:18: warning: unused variable 'tmp' [-Wunused-variable] target_ulong tmp = val; The error message is actually incorrect since the variable is used. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'target-sparc')
-rw-r--r--target-sparc/op_helper.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/target-sparc/op_helper.c b/target-sparc/op_helper.c
index d1a8dd9939..48e1db8227 100644
--- a/target-sparc/op_helper.c
+++ b/target-sparc/op_helper.c
@@ -3901,10 +3901,8 @@ target_ulong cpu_get_ccr(CPUState *env1)
static void put_ccr(target_ulong val)
{
- target_ulong tmp = val;
-
- env->xcc = (tmp >> 4) << 20;
- env->psr = (tmp & 0xf) << 20;
+ env->xcc = (val >> 4) << 20;
+ env->psr = (val & 0xf) << 20;
CC_OP = CC_OP_FLAGS;
}