From patchwork Wed Oct 14 17:35:01 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 36008 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 ozlabs.org (Postfix) with ESMTPS id 835DCB7043 for ; Thu, 15 Oct 2009 04:51:12 +1100 (EST) Received: from localhost ([127.0.0.1]:33444 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1My80D-00067l-37 for incoming@patchwork.ozlabs.org; Wed, 14 Oct 2009 13:51:09 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1My7lU-0002R9-2U for qemu-devel@nongnu.org; Wed, 14 Oct 2009 13:35:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1My7lN-0002MT-I0 for qemu-devel@nongnu.org; Wed, 14 Oct 2009 13:35:53 -0400 Received: from [199.232.76.173] (port=55251 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1My7lM-0002M6-LO for qemu-devel@nongnu.org; Wed, 14 Oct 2009 13:35:48 -0400 Received: from mx1.redhat.com ([209.132.183.28]:61341) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1My7lM-0008Nt-0z for qemu-devel@nongnu.org; Wed, 14 Oct 2009 13:35:48 -0400 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n9EHZlv1003700 for ; Wed, 14 Oct 2009 13:35:47 -0400 Received: from localhost.localdomain (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n9EHZXFv001016; Wed, 14 Oct 2009 13:35:46 -0400 From: Juan Quintela To: qemu-devel@nongnu.org Date: Wed, 14 Oct 2009 19:35:01 +0200 Message-Id: <159379ca28f38affcbd2754e7702a48453d979cd.1255541443.git.quintela@redhat.com> In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.67 on 10.5.11.16 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: [Qemu-devel] [PATCH 10/16] vmware_vga: Remove uselss casts 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/vmware_vga.c | 32 ++++++++++++++++---------------- 1 files changed, 16 insertions(+), 16 deletions(-) diff --git a/hw/vmware_vga.c b/hw/vmware_vga.c index 15609dd..5e31d66 100644 --- a/hw/vmware_vga.c +++ b/hw/vmware_vga.c @@ -630,20 +630,20 @@ static void vmsvga_fifo_run(struct vmsvga_state_s *s) static uint32_t vmsvga_index_read(void *opaque, uint32_t address) { - struct vmsvga_state_s *s = (struct vmsvga_state_s *) opaque; + struct vmsvga_state_s *s = opaque; return s->index; } static void vmsvga_index_write(void *opaque, uint32_t address, uint32_t index) { - struct vmsvga_state_s *s = (struct vmsvga_state_s *) opaque; + struct vmsvga_state_s *s = opaque; s->index = index; } static uint32_t vmsvga_value_read(void *opaque, uint32_t address) { uint32_t caps; - struct vmsvga_state_s *s = (struct vmsvga_state_s *) opaque; + struct vmsvga_state_s *s = opaque; switch (s->index) { case SVGA_REG_ID: return s->svgaid; @@ -761,7 +761,7 @@ static uint32_t vmsvga_value_read(void *opaque, uint32_t address) static void vmsvga_value_write(void *opaque, uint32_t address, uint32_t value) { - struct vmsvga_state_s *s = (struct vmsvga_state_s *) opaque; + struct vmsvga_state_s *s = opaque; switch (s->index) { case SVGA_REG_ID: if (value == SVGA_ID_2 || value == SVGA_ID_1 || value == SVGA_ID_0) @@ -892,7 +892,7 @@ static inline void vmsvga_size(struct vmsvga_state_s *s) static void vmsvga_update_display(void *opaque) { - struct vmsvga_state_s *s = (struct vmsvga_state_s *) opaque; + struct vmsvga_state_s *s = opaque; if (!s->enable) { #ifdef EMBED_STDVGA s->vga.update(&s->vga); @@ -960,7 +960,7 @@ static void vmsvga_reset(struct vmsvga_state_s *s) static void vmsvga_invalidate_display(void *opaque) { - struct vmsvga_state_s *s = (struct vmsvga_state_s *) opaque; + struct vmsvga_state_s *s = opaque; if (!s->enable) { #ifdef EMBED_STDVGA s->vga.invalidate(&s->vga); @@ -975,7 +975,7 @@ static void vmsvga_invalidate_display(void *opaque) available */ static void vmsvga_screen_dump(void *opaque, const char *filename) { - struct vmsvga_state_s *s = (struct vmsvga_state_s *) opaque; + struct vmsvga_state_s *s = opaque; if (!s->enable) { #ifdef EMBED_STDVGA s->vga.screen_dump(&s->vga, filename); @@ -993,7 +993,7 @@ static void vmsvga_screen_dump(void *opaque, const char *filename) static void vmsvga_text_update(void *opaque, console_ch_t *chardata) { - struct vmsvga_state_s *s = (struct vmsvga_state_s *) opaque; + struct vmsvga_state_s *s = opaque; if (s->vga.text_update) s->vga.text_update(&s->vga, chardata); @@ -1002,7 +1002,7 @@ static void vmsvga_text_update(void *opaque, console_ch_t *chardata) #ifdef DIRECT_VRAM static uint32_t vmsvga_vram_readb(void *opaque, target_phys_addr_t addr) { - struct vmsvga_state_s *s = (struct vmsvga_state_s *) opaque; + struct vmsvga_state_s *s = opaque; if (addr < s->fb_size) return *(uint8_t *) (ds_get_data(s->ds) + addr); else @@ -1011,7 +1011,7 @@ static uint32_t vmsvga_vram_readb(void *opaque, target_phys_addr_t addr) static uint32_t vmsvga_vram_readw(void *opaque, target_phys_addr_t addr) { - struct vmsvga_state_s *s = (struct vmsvga_state_s *) opaque; + struct vmsvga_state_s *s = opaque; if (addr < s->fb_size) return *(uint16_t *) (ds_get_data(s->ds) + addr); else @@ -1020,7 +1020,7 @@ static uint32_t vmsvga_vram_readw(void *opaque, target_phys_addr_t addr) static uint32_t vmsvga_vram_readl(void *opaque, target_phys_addr_t addr) { - struct vmsvga_state_s *s = (struct vmsvga_state_s *) opaque; + struct vmsvga_state_s *s = opaque; if (addr < s->fb_size) return *(uint32_t *) (ds_get_data(s->ds) + addr); else @@ -1030,7 +1030,7 @@ static uint32_t vmsvga_vram_readl(void *opaque, target_phys_addr_t addr) static void vmsvga_vram_writeb(void *opaque, target_phys_addr_t addr, uint32_t value) { - struct vmsvga_state_s *s = (struct vmsvga_state_s *) opaque; + struct vmsvga_state_s *s = opaque; if (addr < s->fb_size) *(uint8_t *) (ds_get_data(s->ds) + addr) = value; else @@ -1040,7 +1040,7 @@ static void vmsvga_vram_writeb(void *opaque, target_phys_addr_t addr, static void vmsvga_vram_writew(void *opaque, target_phys_addr_t addr, uint32_t value) { - struct vmsvga_state_s *s = (struct vmsvga_state_s *) opaque; + struct vmsvga_state_s *s = opaque; if (addr < s->fb_size) *(uint16_t *) (ds_get_data(s->ds) + addr) = value; else @@ -1050,7 +1050,7 @@ static void vmsvga_vram_writew(void *opaque, target_phys_addr_t addr, static void vmsvga_vram_writel(void *opaque, target_phys_addr_t addr, uint32_t value) { - struct vmsvga_state_s *s = (struct vmsvga_state_s *) opaque; + struct vmsvga_state_s *s = opaque; if (addr < s->fb_size) *(uint32_t *) (ds_get_data(s->ds) + addr) = value; else @@ -1152,14 +1152,14 @@ static void vmsvga_init(struct vmsvga_state_s *s, int vga_ram_size) static void pci_vmsvga_save(QEMUFile *f, void *opaque) { - struct pci_vmsvga_state_s *s = (struct pci_vmsvga_state_s *) opaque; + struct pci_vmsvga_state_s *s = opaque; pci_device_save(&s->card, f); vmsvga_save(&s->chip, f); } static int pci_vmsvga_load(QEMUFile *f, void *opaque, int version_id) { - struct pci_vmsvga_state_s *s = (struct pci_vmsvga_state_s *) opaque; + struct pci_vmsvga_state_s *s = opaque; int ret; ret = pci_device_load(&s->card, f);