aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2009-08-24 18:42:54 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-08-27 20:47:00 -0500
commite05587e8bef5e171a3811d137ab5a14719b0541c (patch)
tree4e8a5d2769cf95d6fa30f7f99f3d673ab0159830 /hw
parenta60380a561a56fe850d5154f9f4592fb0f8e58c4 (diff)
cirrus_vga: remove pointless cast from void *
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/cirrus_vga.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/hw/cirrus_vga.c b/hw/cirrus_vga.c
index c63da6001c..167401d177 100644
--- a/hw/cirrus_vga.c
+++ b/hw/cirrus_vga.c
@@ -2346,7 +2346,7 @@ static void cirrus_cursor_draw_line(VGACommonState *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;
@@ -2405,7 +2405,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;
@@ -2533,7 +2533,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 */
@@ -2919,7 +2919,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;
@@ -2963,7 +2963,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;