diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2012-11-15 13:12:14 +1100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2012-12-11 11:04:25 +0100 |
commit | d567e62f98d5789ff4d273b924a0474931c71e8b (patch) | |
tree | 26bd5952f6b5b8c59d3679dc3285da8a1201ccae /hw/virtio-pci.c | |
parent | f500a6d3c2b9ef0bb06d0080d91d8ed3c1d68f58 (diff) | |
download | qemu-d567e62f98d5789ff4d273b924a0474931c71e8b.zip qemu-d567e62f98d5789ff4d273b924a0474931c71e8b.tar.gz qemu-d567e62f98d5789ff4d273b924a0474931c71e8b.tar.bz2 |
virtio-blk: Remove duplicate property definition
For the virtio-blk device (via virtio-pci) the property "config-wce" is
defined in two places. First, it's defined from the
DEFINE_VIRTIO_BLK_FEATURES macro, second it's defined directly in
virtio-pci, just two lines above the call to that macro.
The direct definition in virtio-pci.c is broken, since it operates on the
'config_wce' field of VirtIOBlkConf, which is never used anywhere else.
Therefore, this patch removes both the extra property definition and the
redundant field it works on.
Cc: Kevin Wolf <kwolf@redhat.com>
Cc: Anthony Liguori <aliguori@us.ibm.com>
Cc: Paul 'Rusty' Russell <rusty@rustcorp.com.au>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'hw/virtio-pci.c')
-rw-r--r-- | hw/virtio-pci.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/virtio-pci.c b/hw/virtio-pci.c index 71f4fb5..7684ac9 100644 --- a/hw/virtio-pci.c +++ b/hw/virtio-pci.c @@ -895,7 +895,6 @@ static Property virtio_blk_properties[] = { #ifdef __linux__ DEFINE_PROP_BIT("scsi", VirtIOPCIProxy, blk.scsi, 0, true), #endif - DEFINE_PROP_BIT("config-wce", VirtIOPCIProxy, blk.config_wce, 0, true), DEFINE_PROP_BIT("ioeventfd", VirtIOPCIProxy, flags, VIRTIO_PCI_FLAG_USE_IOEVENTFD_BIT, true), DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, 2), DEFINE_VIRTIO_BLK_FEATURES(VirtIOPCIProxy, host_features), |