diff options
-rw-r--r-- | drivers/net/usb/usbnet.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c index 977837725726..5e33606c1366 100644 --- a/drivers/net/usb/usbnet.c +++ b/drivers/net/usb/usbnet.c | |||
@@ -1125,13 +1125,11 @@ netdev_tx_t usbnet_start_xmit (struct sk_buff *skb, | |||
1125 | if (info->tx_fixup) { | 1125 | if (info->tx_fixup) { |
1126 | skb = info->tx_fixup (dev, skb, GFP_ATOMIC); | 1126 | skb = info->tx_fixup (dev, skb, GFP_ATOMIC); |
1127 | if (!skb) { | 1127 | if (!skb) { |
1128 | if (netif_msg_tx_err(dev)) { | 1128 | /* packet collected; minidriver waiting for more */ |
1129 | netif_dbg(dev, tx_err, dev->net, "can't tx_fixup skb\n"); | 1129 | if (info->flags & FLAG_MULTI_PACKET) |
1130 | goto drop; | ||
1131 | } else { | ||
1132 | /* cdc_ncm collected packet; waits for more */ | ||
1133 | goto not_drop; | 1130 | goto not_drop; |
1134 | } | 1131 | netif_dbg(dev, tx_err, dev->net, "can't tx_fixup skb\n"); |
1132 | goto drop; | ||
1135 | } | 1133 | } |
1136 | } | 1134 | } |
1137 | length = skb->len; | 1135 | length = skb->len; |