From: Wolfram Sang Date: Thu, 11 Aug 2016 21:13:05 +0000 (+0200) Subject: net: wireless: intersil: orinoco: orinoco_usb: don't print error when allocating... X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3de6e8852f55b6607ae2f5638a2a755478cee98a;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git net: wireless: intersil: orinoco: orinoco_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: David S. Miller --- diff --git a/drivers/net/wireless/intersil/orinoco/orinoco_usb.c b/drivers/net/wireless/intersil/orinoco/orinoco_usb.c index 56f109bc8394..bca6935a94db 100644 --- a/drivers/net/wireless/intersil/orinoco/orinoco_usb.c +++ b/drivers/net/wireless/intersil/orinoco/orinoco_usb.c @@ -1613,10 +1613,8 @@ static int ezusb_probe(struct usb_interface *interface, } upriv->read_urb = usb_alloc_urb(0, GFP_KERNEL); - if (!upriv->read_urb) { - err("No free urbs available"); + if (!upriv->read_urb) goto error; - } if (le16_to_cpu(ep->wMaxPacketSize) != 64) pr_warn("bulk in: wMaxPacketSize!= 64\n"); if (ep->bEndpointAddress != (2 | USB_DIR_IN))