aboutsummaryrefslogtreecommitdiff
path: root/target-lm32
diff options
context:
space:
mode:
authorMichael Walle <michael@walle.cc>2016-10-12 18:23:16 +0200
committerMichael Tokarev <mjt@tls.msk.ru>2016-10-28 18:17:23 +0300
commit5db35b616b8d3a27783ecddfe12353b88b0cb9f1 (patch)
tree5fd0212458716c3ceb57abf7617223d7a23a9617 /target-lm32
parent5f333d79a4337b390fa4103e270d2bdaf243aad6 (diff)
downloadqemu-5db35b616b8d3a27783ecddfe12353b88b0cb9f1.zip
qemu-5db35b616b8d3a27783ecddfe12353b88b0cb9f1.tar.gz
qemu-5db35b616b8d3a27783ecddfe12353b88b0cb9f1.tar.bz2
target-lm32: fix style issue
Both branches of the ternary operator have the same expressions. Drop the operator. This fixes: https://bugs.launchpad.net/qemu/+bug/1414293 Signed-off-by: Michael Walle <michael@walle.cc> Reviewed-by: Thomas Huth <huth@tuxfamily.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'target-lm32')
-rw-r--r--target-lm32/translate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-lm32/translate.c b/target-lm32/translate.c
index 2d8caeb..534c17c 100644
--- a/target-lm32/translate.c
+++ b/target-lm32/translate.c
@@ -343,7 +343,7 @@ static void dec_calli(DisasContext *dc)
static inline void gen_compare(DisasContext *dc, int cond)
{
int rX = (dc->format == OP_FMT_RR) ? dc->r2 : dc->r1;
- int rY = (dc->format == OP_FMT_RR) ? dc->r0 : dc->r0;
+ int rY = dc->r0;
int rZ = (dc->format == OP_FMT_RR) ? dc->r1 : -1;
int i;