diff options
Diffstat (limited to 'hw/usb-serial.c')
-rw-r--r-- | hw/usb-serial.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/hw/usb-serial.c b/hw/usb-serial.c index 9dd2c072d0..52084822fc 100644 --- a/hw/usb-serial.c +++ b/hw/usb-serial.c @@ -554,8 +554,6 @@ USBDevice *usb_serial_init(const char *filename) } filename++; s = qemu_mallocz(sizeof(USBSerialState)); - if (!s) - return NULL; snprintf(label, sizeof(label), "usbserial%d", index++); cdrv = qemu_chr_open(label, filename, NULL); |