Patchwork [18/22] cirrus_vga: remove pointless cast from void *

login
register
mail settings
Submitter Juan Quintela
Date Aug. 24, 2009, 11:03 a.m.
Message ID <55c90c5a3f796fe112fa282ebd4d6e3604297648.1251111439.git.quintela@redhat.com>
Download mbox | patch
Permalink /patch/31919/
State Superseded
Headers show

Comments

Juan Quintela - Aug. 24, 2009, 11:03 a.m.
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 hw/cirrus_vga.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

Patch

diff --git a/hw/cirrus_vga.c b/hw/cirrus_vga.c
index 6f0fb91..a40f300 100644
--- a/hw/cirrus_vga.c
+++ b/hw/cirrus_vga.c
@@ -2342,7 +2342,7 @@  static void cirrus_cursor_draw_line(VGAState *s1, uint8_t *d1, int scr_y)

 static uint32_t cirrus_linear_readb(void *opaque, target_phys_addr_t addr)
 {
-    CirrusVGAState *s = (CirrusVGAState *) opaque;
+    CirrusVGAState *s = opaque;
     uint32_t ret;

     addr &= s->cirrus_addr_mask;
@@ -2401,7 +2401,7 @@  static uint32_t cirrus_linear_readl(void *opaque, target_phys_addr_t addr)
 static void cirrus_linear_writeb(void *opaque, target_phys_addr_t addr,
 				 uint32_t val)
 {
-    CirrusVGAState *s = (CirrusVGAState *) opaque;
+    CirrusVGAState *s = opaque;
     unsigned mode;

     addr &= s->cirrus_addr_mask;
@@ -2529,7 +2529,7 @@  static uint32_t cirrus_linear_bitblt_readl(void *opaque, target_phys_addr_t addr
 static void cirrus_linear_bitblt_writeb(void *opaque, target_phys_addr_t addr,
 				 uint32_t val)
 {
-    CirrusVGAState *s = (CirrusVGAState *) opaque;
+    CirrusVGAState *s = opaque;

     if (s->cirrus_srcptr != s->cirrus_srcptr_end) {
 	/* bitblt */
@@ -2915,7 +2915,7 @@  static void vga_ioport_write(void *opaque, uint32_t addr, uint32_t val)

 static uint32_t cirrus_mmio_readb(void *opaque, target_phys_addr_t addr)
 {
-    CirrusVGAState *s = (CirrusVGAState *) opaque;
+    CirrusVGAState *s = opaque;

     addr &= CIRRUS_PNPMMIO_SIZE - 1;

@@ -2959,7 +2959,7 @@  static uint32_t cirrus_mmio_readl(void *opaque, target_phys_addr_t addr)
 static void cirrus_mmio_writeb(void *opaque, target_phys_addr_t addr,
 			       uint32_t val)
 {
-    CirrusVGAState *s = (CirrusVGAState *) opaque;
+    CirrusVGAState *s = opaque;

     addr &= CIRRUS_PNPMMIO_SIZE - 1;