ati-vga: Silence warning about operator precedence
Coverity in CID 1645969 warns about possible operator precendence issue which is a false positive in this case but simplify the expression to silence the warning. Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-ID: <24161ec41f118ad097387f8a84897dee7b4747b8.1774904832.git.balaton@eik.bme.hu> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
BALATON Zoltan committed
Mar 30, 2026 at 23:09 UTC
3b4acaf9e650619aaaedfcf12bc6355e6d505cce
1 file changed
+1
-1
hw/display/ati_2d.c
+1
-1
@@ -91,7 +91,7 @@ static void setup_2d_blt_ctx(const ATIVGAState *s, ATI2DCtx *ctx)
91
ctx->host_data_active = s->host_data.active;
92
ctx->left_to_right = s->regs.dp_cntl & DST_X_LEFT_TO_RIGHT;
93
ctx->top_to_bottom = s->regs.dp_cntl & DST_Y_TOP_TO_BOTTOM;
94
- ctx->need_swap = HOST_BIG_ENDIAN != s->vga.big_endian_fb ? true : false;
94
+ ctx->need_swap = (HOST_BIG_ENDIAN != s->vga.big_endian_fb);
95
ctx->frgd_clr = s->regs.dp_brush_frgd_clr;
96
ctx->palette = s->vga.palette;
97
ctx->dst_offset = s->regs.dst_offset;