staging: most: hdm-usb: hdm_usb: don't print error when allocating urb fails
authorWolfram Sang <wsa-dev@sang-engineering.com>
Thu, 11 Aug 2016 21:23:41 +0000 (23:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Aug 2016 13:56:33 +0000 (15:56 +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/staging/most/hdm-usb/hdm_usb.c

index aeae071f28232170fe0685a7675b4262f7e9ec8b..9ec29788c0471f9adfc3050c62d1f29a3dfe89e3 100644 (file)
@@ -650,10 +650,8 @@ static int hdm_enqueue(struct most_interface *iface, int channel,
                return -ENODEV;
 
        urb = usb_alloc_urb(NO_ISOCHRONOUS_URB, GFP_ATOMIC);
-       if (!urb) {
-               dev_err(dev, "Failed to allocate URB\n");
+       if (!urb)
                return -ENOMEM;
-       }
 
        anchor = kzalloc(sizeof(*anchor), GFP_ATOMIC);
        if (!anchor) {