aboutsummaryrefslogtreecommitdiff
path: root/hw/usb/dev-serial.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2015-02-04 13:28:08 +0100
committerGerd Hoffmann <kraxel@redhat.com>2015-02-18 10:53:09 +0100
commit4806ec9b2c57ff42a91d5419ac1137fffd1c9fb5 (patch)
tree002f53fb1679440abd8ae19990ca04fd729d9493 /hw/usb/dev-serial.c
parentcd2d5541271f1934345d8ca42f5fafff1744eee7 (diff)
downloadqemu-4806ec9b2c57ff42a91d5419ac1137fffd1c9fb5.zip
qemu-4806ec9b2c57ff42a91d5419ac1137fffd1c9fb5.tar.gz
qemu-4806ec9b2c57ff42a91d5419ac1137fffd1c9fb5.tar.bz2
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/dev-serial.c')
-rw-r--r--hw/usb/dev-serial.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/hw/usb/dev-serial.c b/hw/usb/dev-serial.c
index 1cee450..f347c05 100644
--- a/hw/usb/dev-serial.c
+++ b/hw/usb/dev-serial.c
@@ -544,9 +544,6 @@ static USBDevice *usb_serial_init(USBBus *bus, const char *filename)
return NULL;
dev = usb_create(bus, "usb-serial");
- if (!dev) {
- return NULL;
- }
qdev_prop_set_chr(&dev->qdev, "chardev", cdrv);
if (vendorid)
qdev_prop_set_uint16(&dev->qdev, "vendorid", vendorid);