diff options
author | Wolfram Sang <wsa-dev@sang-engineering.com> | 2016-08-11 23:13:05 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-13 14:53:41 -0700 |
commit | 3de6e8852f55b6607ae2f5638a2a755478cee98a (patch) | |
tree | 95e77c479abe3ddcb86127dec4b8b77a300aeada /drivers/net/wireless/intersil/orinoco | |
parent | 938f89e50a41c2d56710805fb019ad7618cef84b (diff) |
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 <wsa-dev@sang-engineering.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/intersil/orinoco')
-rw-r--r-- | drivers/net/wireless/intersil/orinoco/orinoco_usb.c | 4 |
1 files changed, 1 insertions, 3 deletions
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)) |