Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1460802
| From | Wolfram Sang <wsa-dev@sang-engineering.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 13/16] net: wireless: intersil: orinoco: orinoco_usb: don't print error when allocating urb fails |
| Date | 2016-08-11 23:20 +0200 |
| Message-ID | <s55yp-Op-11@gated-at.bofh.it> (permalink) |
| References | <s55yp-Op-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
kmalloc will print enough information in case of failure.
Signed-off-by: Wolfram Sang <wsa-dev@sang-engineering.com>
---
drivers/net/wireless/intersil/orinoco/orinoco_usb.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/net/wireless/intersil/orinoco/orinoco_usb.c b/drivers/net/wireless/intersil/orinoco/orinoco_usb.c
index 56f109bc83945d..bca6935a94db9a 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))
--
2.8.1
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 13/16] net: wireless: intersil: orinoco: orinoco_usb: don't print error when allocating urb fails Wolfram Sang <wsa-dev@sang-engineering.com> - 2016-08-11 23:20 +0200 [PATCH 14/16] net: wireless: marvell: libertas_tf: if_usb: don't print error when allocating urb fails Wolfram Sang <wsa-dev@sang-engineering.com> - 2016-08-11 23:20 +0200
csiph-web