From: Yongjian Xu Date: Tue, 20 May 2014 08:22:50 +0000 (+0000) Subject: e1000: remove the check: skb->len<=0 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c46d15040450c9d6031d90b93382f77419d495ed;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git e1000: remove the check: skb->len<=0 There is no case skb->len would be 0 or 'negative'. Remove the check. Signed-off-by: Yongjian Xu Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher --- diff --git a/drivers/net/ethernet/intel/e1000/e1000_main.c b/drivers/net/ethernet/intel/e1000/e1000_main.c index 27058dfe418b..660971f304b2 100644 --- a/drivers/net/ethernet/intel/e1000/e1000_main.c +++ b/drivers/net/ethernet/intel/e1000/e1000_main.c @@ -3105,11 +3105,6 @@ static netdev_tx_t e1000_xmit_frame(struct sk_buff *skb, */ tx_ring = adapter->tx_ring; - if (unlikely(skb->len <= 0)) { - dev_kfree_skb_any(skb); - return NETDEV_TX_OK; - } - /* On PCI/PCI-X HW, if packet size is less than ETH_ZLEN, * packets may get corrupted during padding by HW. * To WA this issue, pad all small packets manually.