aboutsummaryrefslogtreecommitdiff
path: root/hw/vga.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2009-08-31 16:07:11 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-09-09 14:55:10 -0500
commit1a5ab757120bbb528442b08d3abc7a2b7d401578 (patch)
tree42c0bc85988a3891c72c2f074c3e8bf34ce98b03 /hw/vga.c
parent179da8afe61753453bc70a93ba0f0f4081e06f4d (diff)
vga: remove useless cast from void *
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/vga.c')
-rw-r--r--hw/vga.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/hw/vga.c b/hw/vga.c
index 6b5070a254..7bfd8e9d45 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);