]> git.karo-electronics.de Git - linux-beck.git/commitdiff
usb: usb-skeleton: don't print error when allocating urb fails
authorWolfram Sang <wsa-dev@sang-engineering.com>
Thu, 11 Aug 2016 21:14:47 +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/usb-skeleton.c

index 545d09b8081d55ff843bc59e918d96865eaf6849..89e02a7529b78512716d66585084f89b46705433 100644 (file)
@@ -532,11 +532,8 @@ static int skel_probe(struct usb_interface *interface,
                                goto error;
                        }
                        dev->bulk_in_urb = usb_alloc_urb(0, GFP_KERNEL);
-                       if (!dev->bulk_in_urb) {
-                               dev_err(&interface->dev,
-                                       "Could not allocate bulk_in_urb\n");
+                       if (!dev->bulk_in_urb)
                                goto error;
-                       }
                }
 
                if (!dev->bulk_out_endpointAddr &&