[media] staging: media: lirc: lirc_sasem: don't print error when allocating urb fails
authorWolfram Sang <wsa-dev@sang-engineering.com>
Thu, 11 Aug 2016 21:23:40 +0000 (18:23 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 24 Aug 2016 19:51:15 +0000 (16:51 -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_sasem.c

index 2218d0042030ed29ba95376c8d1dd310f1ce2437..b080fde6d740c9b86b1a5927681a73ce213f78fd 100644 (file)
@@ -758,17 +758,12 @@ static int sasem_probe(struct usb_interface *interface,
        }
        rx_urb = usb_alloc_urb(0, GFP_KERNEL);
        if (!rx_urb) {
-               dev_err(&interface->dev,
-                       "%s: usb_alloc_urb failed for IR urb\n", __func__);
                alloc_status = 5;
                goto alloc_status_switch;
        }
        if (vfd_ep_found) {
                tx_urb = usb_alloc_urb(0, GFP_KERNEL);
                if (!tx_urb) {
-                       dev_err(&interface->dev,
-                               "%s: usb_alloc_urb failed for VFD urb",
-                               __func__);
                        alloc_status = 6;
                        goto alloc_status_switch;
                }