From: Michael Walle Date: Wed, 12 Oct 2016 16:23:16 +0000 (+0200) Subject: target-lm32: fix style issue X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=5db35b616b8d3a27783ecddfe12353b88b0cb9f1;p=qemu.git 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 Reviewed-by: Thomas Huth Reviewed-by: Peter Maydell Signed-off-by: Michael Tokarev --- diff --git a/target-lm32/translate.c b/target-lm32/translate.c index 2d8caebbfc..534c17cfcc 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;