From: Amit Shah Date: Wed, 13 Jan 2010 10:54:45 +0000 (+0530) Subject: hw/vga.c: remove dead assignment X-Git-Tag: v0.13.0-rc0~1697 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c4af120f5f180f79f671f6703a3b71209d89c010;p=thirdparty%2Fqemu.git hw/vga.c: remove dead assignment clang-analyzer points out a redundant assignment. Signed-off-by: Amit Shah Signed-off-by: Anthony Liguori --- diff --git a/hw/vga.c b/hw/vga.c index d05f1f9d19c..6a1a0597d5c 100644 --- a/hw/vga.c +++ b/hw/vga.c @@ -1303,7 +1303,6 @@ static void vga_draw_text(VGACommonState *s, int full_update) line_offset = s->line_offset; vga_get_text_resolution(s, &width, &height, &cw, &cheight); - x_incr = cw * ((ds_get_bits_per_pixel(s->ds) + 7) >> 3); if ((height * width) > CH_ATTR_SIZE) { /* better than nothing: exit if transient size is too big */ return;