diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2013-04-23 15:44:31 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-04-25 14:45:46 -0500 |
commit | 5209089fcd1373c363dc424827593ffaced12203 (patch) | |
tree | fe84ffff6e59236542d668b8cb869f4a397af1d3 /hw | |
parent | cdd5b9375744130e2f49548a3cac7be176a931ca (diff) |
console: zap ds arg from register_displaychangelistener
We don't have multiple DisplayStates any more,
so passing it in as argument is not needed.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/display/qxl.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/hw/display/qxl.c b/hw/display/qxl.c index f8bd7ff28e..2d49e9a720 100644 --- a/hw/display/qxl.c +++ b/hw/display/qxl.c @@ -2058,7 +2058,6 @@ static int qxl_init_primary(PCIDevice *dev) PCIQXLDevice *qxl = DO_UPCAST(PCIQXLDevice, pci, dev); VGACommonState *vga = &qxl->vga; PortioList *qxl_vga_port_list = g_new(PortioList, 1); - DisplayState *ds; int rc; qxl->id = 0; @@ -2079,8 +2078,7 @@ static int qxl_init_primary(PCIDevice *dev) qxl->ssd.dcl.ops = &display_listener_ops; qxl->ssd.dcl.con = vga->con; - ds = qemu_console_displaystate(vga->con); - register_displaychangelistener(ds, &qxl->ssd.dcl); + register_displaychangelistener(&qxl->ssd.dcl); return rc; } |