net: wireless: intersil: orinoco: orinoco_usb: don't print error when allocating...
authorWolfram Sang <wsa-dev@sang-engineering.com>
Thu, 11 Aug 2016 21:13:05 +0000 (23:13 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Aug 2016 21:53:41 +0000 (14:53 -0700)
kmalloc will print enough information in case of failure.

Signed-off-by: Wolfram Sang <wsa-dev@sang-engineering.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wireless/intersil/orinoco/orinoco_usb.c

index 56f109bc83945d351e35888dd1091fcd6c42ac28..bca6935a94db9a4bd767bfa0b7d2d7c82cd6b60c 100644 (file)
@@ -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))