From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NV0tY-0001FP-6z for qemu-devel@nongnu.org; Wed, 13 Jan 2010 05:56:12 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NV0tT-0001DB-FP for qemu-devel@nongnu.org; Wed, 13 Jan 2010 05:56:11 -0500 Received: from [199.232.76.173] (port=35080 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NV0tT-0001D0-1P for qemu-devel@nongnu.org; Wed, 13 Jan 2010 05:56:07 -0500 Received: from mx1.redhat.com ([209.132.183.28]:59902) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NV0tS-0004L7-DT for qemu-devel@nongnu.org; Wed, 13 Jan 2010 05:56:06 -0500 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o0DAu5YP016014 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 13 Jan 2010 05:56:05 -0500 From: Amit Shah Date: Wed, 13 Jan 2010 16:24:45 +0530 Message-Id: <1263380087-31821-5-git-send-email-amit.shah@redhat.com> In-Reply-To: <1263380087-31821-4-git-send-email-amit.shah@redhat.com> References: <1263380087-31821-1-git-send-email-amit.shah@redhat.com> <1263380087-31821-2-git-send-email-amit.shah@redhat.com> <1263380087-31821-3-git-send-email-amit.shah@redhat.com> <1263380087-31821-4-git-send-email-amit.shah@redhat.com> Subject: [Qemu-devel] [PATCH 4/6] hw/vga.c: remove dead assignment List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Amit Shah clang-analyzer points out a redundant assignment. Signed-off-by: Amit Shah --- 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