diff options
Diffstat (limited to 'hw/usb-hid.c')
-rw-r--r-- | hw/usb-hid.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/hw/usb-hid.c b/hw/usb-hid.c index 76fdce6912..c850a91947 100644 --- a/hw/usb-hid.c +++ b/hw/usb-hid.c @@ -851,8 +851,6 @@ USBDevice *usb_tablet_init(void) USBHIDState *s; s = qemu_mallocz(sizeof(USBHIDState)); - if (!s) - return NULL; s->dev.speed = USB_SPEED_FULL; s->dev.handle_packet = usb_generic_handle_packet; @@ -874,8 +872,6 @@ USBDevice *usb_mouse_init(void) USBHIDState *s; s = qemu_mallocz(sizeof(USBHIDState)); - if (!s) - return NULL; s->dev.speed = USB_SPEED_FULL; s->dev.handle_packet = usb_generic_handle_packet; @@ -897,8 +893,6 @@ USBDevice *usb_keyboard_init(void) USBHIDState *s; s = qemu_mallocz(sizeof(USBHIDState)); - if (!s) - return NULL; s->dev.speed = USB_SPEED_FULL; s->dev.handle_packet = usb_generic_handle_packet; |