]> git.karo-electronics.de Git - linux-beck.git/commitdiff
media: rc: redrat3: don't print error when allocating urb fails
authorWolfram Sang <wsa-dev@sang-engineering.com>
Thu, 11 Aug 2016 21:03:40 +0000 (23:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Aug 2016 17:13:53 +0000 (19:13 +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/media/rc/redrat3.c

index 399f44d89a298606ebd751ae672fb7f4437190d9..ec8016d9b00907aefbcc0702c7baf6c3f9b1122f 100644 (file)
@@ -970,10 +970,8 @@ static int redrat3_dev_probe(struct usb_interface *intf,
 
        /* set up bulk-in endpoint */
        rr3->read_urb = usb_alloc_urb(0, GFP_KERNEL);
-       if (!rr3->read_urb) {
-               dev_err(dev, "Read urb allocation failure\n");
+       if (!rr3->read_urb)
                goto error;
-       }
 
        rr3->ep_in = ep_in;
        rr3->bulk_in_buf = usb_alloc_coherent(udev,