OSDN Git Service

usb-storage: Drop not needed "allow_hotplug = 0"
authorIgor Mammedov <imammedo@redhat.com>
Fri, 26 Sep 2014 09:28:37 +0000 (09:28 +0000)
committerAndreas Färber <afaerber@suse.de>
Wed, 15 Oct 2014 03:03:14 +0000 (05:03 +0200)
commit77de4a09c6d3d1e4fabcc0eb6cfdb9ea5a1616d5
treead852719dc62a80142f093b8d39493c13f2ded4b
parentaf01492755b82ccaf0d15014477b34ba3ea643fc
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>
hw/usb/dev-storage.c