qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 4/6] hw/vga.c: remove dead assignment


From: Amit Shah
Subject: [Qemu-devel] [PATCH 4/6] hw/vga.c: remove dead assignment
Date: Wed, 13 Jan 2010 16:24:45 +0530

clang-analyzer points out a redundant assignment.

Signed-off-by: Amit Shah <address@hidden>
---
 hw/vga.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/hw/vga.c b/hw/vga.c
index d05f1f9..6a1a059 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;
-- 
1.6.2.5





reply via email to

[Prev in Thread] Current Thread [Next in Thread]