projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12800ea
)
net: usb: lan78xx: don't print error when allocating urb fails
author
Wolfram Sang
<wsa-dev@sang-engineering.com>
Thu, 11 Aug 2016 21:05:27 +0000
(23:05 +0200)
committer
David S. Miller
<davem@davemloft.net>
Sat, 13 Aug 2016 21:53:40 +0000
(14:53 -0700)
kmalloc will print enough information in case of failure.
Signed-off-by: Wolfram Sang <wsa-dev@sang-engineering.com>
Acked-by: Woojung Huh <woojung.huh@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/lan78xx.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/usb/lan78xx.c
b/drivers/net/usb/lan78xx.c
index 6a9d474b08b21cb7e9489906f44c17a63cc3bd39..432b8a3ae35491aa10a5c349eacf8ea6374ee58d 100644
(file)
--- a/
drivers/net/usb/lan78xx.c
+++ b/
drivers/net/usb/lan78xx.c
@@
-3002,10
+3002,8
@@
static void lan78xx_tx_bh(struct lan78xx_net *dev)
gso_skb:
urb = usb_alloc_urb(0, GFP_ATOMIC);
- if (!urb) {
- netif_dbg(dev, tx_err, dev->net, "no urb\n");
+ if (!urb)
goto drop;
- }
entry = (struct skb_data *)skb->cb;
entry->urb = urb;