[media] staging: media: lirc: lirc_imon: don't print error when allocating urb fails
authorWolfram Sang <wsa-dev@sang-engineering.com>
Thu, 11 Aug 2016 21:23:39 +0000 (18:23 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 24 Aug 2016 19:50:56 +0000 (16:50 -0300)
kmalloc will print enough information in case of failure.

Signed-off-by: Wolfram Sang <wsa-dev@sang-engineering.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/staging/media/lirc/lirc_imon.c

index ff1926ca1f96f538219478a1a17ba215e81f9ef7..a183e68ec32089b788acb640f0fe14f0520b10e4 100644 (file)
@@ -797,16 +797,11 @@ static int imon_probe(struct usb_interface *interface,
                goto free_rbuf;
        }
        rx_urb = usb_alloc_urb(0, GFP_KERNEL);
-       if (!rx_urb) {
-               dev_err(dev, "%s: usb_alloc_urb failed for IR urb\n", __func__);
+       if (!rx_urb)
                goto free_lirc_buf;
-       }
        tx_urb = usb_alloc_urb(0, GFP_KERNEL);
-       if (!tx_urb) {
-               dev_err(dev, "%s: usb_alloc_urb failed for display urb\n",
-                   __func__);
+       if (!tx_urb)
                goto free_rx_urb;
-       }
 
        mutex_init(&context->ctx_lock);
        context->vfd_proto_6p = vfd_proto_6p;