diff options
author | Igor Mammedov <imammedo@redhat.com> | 2014-09-26 09:28:37 +0000 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2014-10-15 05:03:14 +0200 |
commit | 77de4a09c6d3d1e4fabcc0eb6cfdb9ea5a1616d5 (patch) | |
tree | ad852719dc62a80142f093b8d39493c13f2ded4b /hw | |
parent | af01492755b82ccaf0d15014477b34ba3ea643fc (diff) | |
download | qemu-77de4a09c6d3d1e4fabcc0eb6cfdb9ea5a1616d5.zip |
usb-storage: Drop not needed "allow_hotplug = 0"
Drop useless hack that disables hotplug on bus, after backend
storage was added to it, by setting "allow_hotplug = 0". Even
if bus is hotpluggable, it won't be possible to add another
SCSI device to bus since its realize will fail early with
error "no free target" in scsi_qdev_realize() method.
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'hw')
-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 bccaa3fbf4..b005783fdf 100644 --- a/hw/usb/dev-storage.c +++ b/hw/usb/dev-storage.c @@ -632,7 +632,6 @@ static void usb_msd_realize_storage(USBDevice *dev, Error **errp) error_propagate(errp, err); return; } - s->bus.qbus.allow_hotplug = 0; usb_msd_handle_reset(dev); if (bdrv_key_required(bs)) { |