From patchwork Mon Aug 31 14:07:11 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 32637 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by bilbo.ozlabs.org (Postfix) with ESMTPS id B0ACBB7B69 for ; Tue, 1 Sep 2009 00:14:02 +1000 (EST) Received: from localhost ([127.0.0.1]:48495 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mi7ds-0006X5-N2 for incoming@patchwork.ozlabs.org; Mon, 31 Aug 2009 10:13:56 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mi7aF-0004fY-Dk for qemu-devel@nongnu.org; Mon, 31 Aug 2009 10:10:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mi7aA-0004dI-4x for qemu-devel@nongnu.org; Mon, 31 Aug 2009 10:10:10 -0400 Received: from [199.232.76.173] (port=43319 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mi7a9-0004d9-GJ for qemu-devel@nongnu.org; Mon, 31 Aug 2009 10:10:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51766) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mi7a9-0003C0-1R for qemu-devel@nongnu.org; Mon, 31 Aug 2009 10:10:05 -0400 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n7VEA3Zd021181; Mon, 31 Aug 2009 10:10:04 -0400 Received: from localhost.localdomain (vpn1-4-222.ams2.redhat.com [10.36.4.222]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n7VEA0oL003480; Mon, 31 Aug 2009 10:10:02 -0400 From: Juan Quintela To: qemu-devel@nongnu.org Date: Mon, 31 Aug 2009 16:07:11 +0200 Message-Id: In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.67 on 10.5.11.17 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Cc: aliguori@us.ibm.com Subject: [Qemu-devel] [PATCH 01/23] vga: remove useless cast from void * X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Juan Quintela --- hw/vga.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/vga.c b/hw/vga.c index 6b5070a..7bfd8e9 100644 --- a/hw/vga.c +++ b/hw/vga.c @@ -1835,7 +1835,7 @@ static void vga_draw_blank(VGAState *s, int full_update) static void vga_update_display(void *opaque) { - VGAState *s = (VGAState *)opaque; + VGAState *s = opaque; int full_update, graphic_mode; if (ds_get_bits_per_pixel(s->ds) == 0) { @@ -1870,7 +1870,7 @@ static void vga_update_display(void *opaque) /* force a full display refresh */ static void vga_invalidate_display(void *opaque) { - VGAState *s = (VGAState *)opaque; + VGAState *s = opaque; s->full_update = 1; } @@ -1944,7 +1944,7 @@ void vga_common_reset(VGACommonState *s) static void vga_reset(void *opaque) { - VGAState *s = (VGAState *) opaque; + VGAState *s = opaque; vga_common_reset(s); } @@ -1956,7 +1956,7 @@ static void vga_reset(void *opaque) * instead of doing a full vga_update_display() */ static void vga_update_text(void *opaque, console_ch_t *chardata) { - VGAState *s = (VGAState *) opaque; + VGAState *s = opaque; int graphic_mode, i, cursor_offset, cursor_visible; int cw, cheight, width, height, size, c_min, c_max; uint32_t *src; @@ -2628,7 +2628,7 @@ static DisplayChangeListener* vga_screen_dump_init(DisplayState *ds) available */ static void vga_screen_dump(void *opaque, const char *filename) { - VGAState *s = (VGAState *)opaque; + VGAState *s = opaque; if (!screen_dump_dcl) screen_dump_dcl = vga_screen_dump_init(s->ds);