forked from Minki/linux
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>
This commit is contained in:
parent
12800ea95a
commit
d7c4e84e34
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user