diff options
author | Igor Mammedov <imammedo@redhat.com> | 2014-09-26 09:28:36 +0000 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2014-10-15 05:03:14 +0200 |
commit | af01492755b82ccaf0d15014477b34ba3ea643fc (patch) | |
tree | 71ac53cf9b2db8e323971c7e6a5619c86b4d0d7d /hw/usb | |
parent | e9fd12aa0dd734f1e3725d93a0afa8721fab3bd2 (diff) | |
download | qemu-af01492755b82ccaf0d15014477b34ba3ea643fc.zip qemu-af01492755b82ccaf0d15014477b34ba3ea643fc.tar.gz qemu-af01492755b82ccaf0d15014477b34ba3ea643fc.tar.bz2 |
usb-bot: Drop not needed "allow_hotplug = 0"
Drop useless hack that disables hotplug on bus by setting
"allow_hotplug = 0". Even if bus is hotpluggable, It won't
be possible to add another SCSI device to bus since its
realization will fail early with error "no free target"
in scsi_qdev_realize() method.
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'hw/usb')
-rw-r--r-- | hw/usb/dev-storage.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/usb/dev-storage.c b/hw/usb/dev-storage.c index a207507..bccaa3f 100644 --- a/hw/usb/dev-storage.c +++ b/hw/usb/dev-storage.c @@ -653,7 +653,6 @@ static void usb_msd_realize_bot(USBDevice *dev, Error **errp) usb_desc_init(dev); scsi_bus_new(&s->bus, sizeof(s->bus), DEVICE(dev), &usb_msd_scsi_info_bot, NULL); - s->bus.qbus.allow_hotplug = 0; usb_msd_handle_reset(dev); } |