Merge remote-tracking branch 'usb/usb-next'
[deliverable/linux.git] / drivers / usb / wusbcore / wa-nep.c
index 60a10d21947d460b62b3187676a21692e2078b8f..ed4622279c63c0bb4abc76e90fba8cca4493e537 100644 (file)
@@ -271,16 +271,11 @@ int wa_nep_create(struct wahc *wa, struct usb_interface *iface)
        epd = &iface->cur_altsetting->endpoint[0].desc;
        wa->nep_buffer_size = 1024;
        wa->nep_buffer = kmalloc(wa->nep_buffer_size, GFP_KERNEL);
-       if (wa->nep_buffer == NULL) {
-               dev_err(dev,
-                       "Unable to allocate notification's read buffer\n");
+       if (!wa->nep_buffer)
                goto error_nep_buffer;
-       }
        wa->nep_urb = usb_alloc_urb(0, GFP_KERNEL);
-       if (wa->nep_urb == NULL) {
-               dev_err(dev, "Unable to allocate notification URB\n");
+       if (wa->nep_urb == NULL)
                goto error_urb_alloc;
-       }
        usb_fill_int_urb(wa->nep_urb, usb_dev,
                         usb_rcvintpipe(usb_dev, epd->bEndpointAddress),
                         wa->nep_buffer, wa->nep_buffer_size,
This page took 0.025608 seconds and 5 git commands to generate.