diff options
author | Yongjian Xu <xuyongjiande@gmail.com> | 2014-05-20 04:22:50 -0400 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2014-06-04 02:57:57 -0400 |
commit | c46d15040450c9d6031d90b93382f77419d495ed (patch) | |
tree | 8e37a795743b7810fbbbabdf34e0c93c7b012f76 | |
parent | 27dff8b2f680ce966b5d959be9d69dd0edd92e3b (diff) |
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 <xuyongjiande@gmail.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
-rw-r--r-- | drivers/net/ethernet/intel/e1000/e1000_main.c | 5 |
1 files changed, 0 insertions, 5 deletions
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, | |||
3105 | */ | 3105 | */ |
3106 | tx_ring = adapter->tx_ring; | 3106 | tx_ring = adapter->tx_ring; |
3107 | 3107 | ||
3108 | if (unlikely(skb->len <= 0)) { | ||
3109 | dev_kfree_skb_any(skb); | ||
3110 | return NETDEV_TX_OK; | ||
3111 | } | ||
3112 | |||
3113 | /* On PCI/PCI-X HW, if packet size is less than ETH_ZLEN, | 3108 | /* On PCI/PCI-X HW, if packet size is less than ETH_ZLEN, |
3114 | * packets may get corrupted during padding by HW. | 3109 | * packets may get corrupted during padding by HW. |
3115 | * To WA this issue, pad all small packets manually. | 3110 | * To WA this issue, pad all small packets manually. |