usb-bus: Don't detach non attached devices on device exit
commit290a5c60a3d203a62a09c88083456ed3ad20329f
authorHans de Goede <hdegoede@redhat.com>
Tue, 31 May 2011 09:35:29 +0000 (31 11:35 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 14 Jun 2011 10:56:49 +0000 (14 12:56 +0200)
tree27adb8a9278d63a66c6e1df7b38dfd5df63c5d8d
parent290d26d2e7510fbbcb68a765695b5838af60b3f0
usb-bus: Don't detach non attached devices on device exit

This causes an "Error: tried to detach unattached usb device " to be printed,
this can happen when deleting ie a usb host qdev, which did not
get attached (because a device matching the filter never got plugged in).

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb-bus.c