]> git.karo-electronics.de Git - linux-beck.git/commitdiff
usb: wusbcore: wa-nep: don't print error when allocating urb fails
authorWolfram Sang <wsa-dev@sang-engineering.com>
Thu, 11 Aug 2016 21:14:49 +0000 (23:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Aug 2016 13:54:27 +0000 (15:54 +0200)
kmalloc will print enough information in case of failure.

Signed-off-by: Wolfram Sang <wsa-dev@sang-engineering.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/wusbcore/wa-nep.c

index 60a10d21947d460b62b3187676a21692e2078b8f..6140100ad50e41298b5450a327283204f2477889 100644 (file)
@@ -277,10 +277,8 @@ int wa_nep_create(struct wahc *wa, struct usb_interface *iface)
                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,