aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hw/usb/bus.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/hw/usb/bus.c b/hw/usb/bus.c
index 5abfac0..d83a938 100644
--- a/hw/usb/bus.c
+++ b/hw/usb/bus.c
@@ -339,14 +339,7 @@ static USBDevice *usb_try_create_simple(USBBus *bus, const char *name,
USBDevice *usb_create_simple(USBBus *bus, const char *name)
{
- Error *err = NULL;
- USBDevice *dev = usb_try_create_simple(bus, name, &err);
-
- if (!dev) {
- error_report("%s", error_get_pretty(err));
- error_free(err);
- }
- return dev;
+ return usb_try_create_simple(bus, name, &error_abort);
}
static void usb_fill_port(USBPort *port, void *opaque, int index,