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

index 65f80b8b9f7ab922b39f3e02d8b878c097bae1fb..86cc70fe25348f1ef9f48070ec518a23a2f036ae 100644 (file)
@@ -2211,16 +2211,11 @@ static struct imon_context *imon_init_intf0(struct usb_interface *intf,
                goto exit;
        }
        rx_urb = usb_alloc_urb(0, GFP_KERNEL);
-       if (!rx_urb) {
-               dev_err(dev, "%s: usb_alloc_urb failed for IR urb", __func__);
+       if (!rx_urb)
                goto rx_urb_alloc_failed;
-       }
        tx_urb = usb_alloc_urb(0, GFP_KERNEL);
-       if (!tx_urb) {
-               dev_err(dev, "%s: usb_alloc_urb failed for display urb",
-                       __func__);
+       if (!tx_urb)
                goto tx_urb_alloc_failed;
-       }
 
        mutex_init(&ictx->lock);
        spin_lock_init(&ictx->kc_lock);
@@ -2305,10 +2300,8 @@ static struct imon_context *imon_init_intf1(struct usb_interface *intf,
        int ret = -ENOMEM;
 
        rx_urb = usb_alloc_urb(0, GFP_KERNEL);
-       if (!rx_urb) {
-               pr_err("usb_alloc_urb failed for IR urb\n");
+       if (!rx_urb)
                goto rx_urb_alloc_failed;
-       }
 
        mutex_lock(&ictx->lock);