Skip to content

Commit

Permalink
net: wireless: intersil: orinoco: orinoco_usb: don't print error when…
Browse files Browse the repository at this point in the history
… 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>
  • Loading branch information
Wolfram Sang authored and David S. Miller committed Aug 13, 2016
1 parent 938f89e commit 3de6e88
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/net/wireless/intersil/orinoco/orinoco_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 3de6e88

Please sign in to comment.