diff options
author | Markus Armbruster <armbru@redhat.com> | 2015-02-04 13:28:08 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2015-02-18 10:53:09 +0100 |
commit | 4806ec9b2c57ff42a91d5419ac1137fffd1c9fb5 (patch) | |
tree | 002f53fb1679440abd8ae19990ca04fd729d9493 /hw/usb/bus.c | |
parent | cd2d5541271f1934345d8ca42f5fafff1744eee7 (diff) |
usb: usb_create() can't fail, drop useless error handling
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb/bus.c')
-rw-r--r-- | hw/usb/bus.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/hw/usb/bus.c b/hw/usb/bus.c index 986b2d8da8..eeb6872324 100644 --- a/hw/usb/bus.c +++ b/hw/usb/bus.c @@ -320,10 +320,6 @@ USBDevice *usb_create_simple(USBBus *bus, const char *name) USBDevice *dev = usb_create(bus, name); int rc; - if (!dev) { - error_report("Failed to create USB device '%s'", name); - return NULL; - } rc = qdev_init(&dev->qdev); if (rc < 0) { error_report("Failed to initialize USB device '%s'", name); |