]> git.proxmox.com Git - qemu.git/commitdiff
virtio-serial: Drop useless property is_console
authorMarkus Armbruster <armbru@redhat.com>
Wed, 25 May 2011 12:21:12 +0000 (14:21 +0200)
committerAmit Shah <amit.shah@redhat.com>
Fri, 27 May 2011 10:20:56 +0000 (15:50 +0530)
All you could ever achieve with it is break stuff, so removing it
should be safe.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
hw/virtio-console.c
hw/virtio-serial.h

index 50b85f8a60a78963f62bdfed798162aeb453750c..180ac0af76ee0ba54ab251838f5a82959b6d6992 100644 (file)
@@ -91,7 +91,6 @@ static int virtconsole_initfn(VirtIOSerialPort *port)
 {
     VirtConsole *vcon = DO_UPCAST(VirtConsole, port, port);
 
-    port->is_console_dummy = true;
     return generic_port_init(vcon, port);
 }
 
@@ -117,7 +116,6 @@ static VirtIOSerialPortInfo virtconsole_info = {
     .init          = virtconsole_initfn,
     .exit          = virtconsole_exitfn,
     .qdev.props = (Property[]) {
-        DEFINE_PROP_UINT8("is_console", VirtConsole, port.is_console_dummy, 1),
         DEFINE_PROP_UINT32("nr", VirtConsole, port.id, VIRTIO_CONSOLE_BAD_ID),
         DEFINE_PROP_CHR("chardev", VirtConsole, chr),
         DEFINE_PROP_STRING("name", VirtConsole, port.name),
index 350ed21911e420be1bfa32a8fee3a1c214596da6..ac612f219f9e873576123d3b42a6cca615b3bc3e 100644 (file)
@@ -124,9 +124,6 @@ struct VirtIOSerialPort {
      */
     QEMUBH *bh;
 
-    /* For property backward compatibility, not used otherwise */
-    uint8_t is_console_dummy;
-
     /* Is the corresponding guest device open? */
     bool guest_connected;
     /* Is this device open for IO on the host? */