summaryrefslogtreecommitdiffstats
path: root/drivers/net/usb/lan78xx.c
diff options
context:
space:
mode:
authorWolfram Sang <wsa-dev@sang-engineering.com>2016-08-11 23:05:27 +0200
committerDavid S. Miller <davem@davemloft.net>2016-08-13 23:53:40 +0200
commitd7c4e84e34813d9d2cbb9ec72fb8cbcbb71340c0 (patch)
tree8ea0ecad759e627ab017f31740aea7af88634773 /drivers/net/usb/lan78xx.c
parentnet: usb: hso: don't print error when allocating urb fails (diff)
downloadlinux-d7c4e84e34813d9d2cbb9ec72fb8cbcbb71340c0.tar.xz
linux-d7c4e84e34813d9d2cbb9ec72fb8cbcbb71340c0.zip
net: usb: lan78xx: 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> Acked-by: Woojung Huh <woojung.huh@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb/lan78xx.c')
-rw-r--r--drivers/net/usb/lan78xx.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/usb/lan78xx.c b/drivers/net/usb/lan78xx.c
index 6a9d474b08b2..432b8a3ae354 100644
--- 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;