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