From: Wolfram Sang Date: Thu, 11 Aug 2016 21:23:41 +0000 (+0200) Subject: staging: most: hdm-usb: hdm_usb: don't print error when allocating urb fails X-Git-Tag: v4.9-rc1~119^2~1244 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ca47d8f3ff7b3ee5ca04e03bc22052c3d1dbd5e2;p=karo-tx-linux.git staging: most: hdm-usb: hdm_usb: don't print error when allocating urb fails kmalloc will print enough information in case of failure. Signed-off-by: Wolfram Sang Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/most/hdm-usb/hdm_usb.c b/drivers/staging/most/hdm-usb/hdm_usb.c index aeae071f2823..9ec29788c047 100644 --- a/drivers/staging/most/hdm-usb/hdm_usb.c +++ b/drivers/staging/most/hdm-usb/hdm_usb.c @@ -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) {