diff options
author | Jesse Brandeburg <jesse.brandeburg@intel.com> | 2009-02-06 18:23:32 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-07 05:43:18 -0500 |
commit | 593721833d2a3987736467144ad062a709d3a72c (patch) | |
tree | 70160ef809be2b61daebe3500cec5d7a9220f6e7 /drivers/net/igb | |
parent | 86d5d38fa1afe2c96f184482d6c6d1a59ee7e2dc (diff) |
igb: remove dead code in transmit routine
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/igb')
-rw-r--r-- | drivers/net/igb/igb_main.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/igb/igb_main.c b/drivers/net/igb/igb_main.c index 8bc1ffa04ec..f8c2919bcec 100644 --- a/drivers/net/igb/igb_main.c +++ b/drivers/net/igb/igb_main.c | |||
@@ -2951,12 +2951,9 @@ static int igb_xmit_frame_ring_adv(struct sk_buff *skb, | |||
2951 | struct igb_adapter *adapter = netdev_priv(netdev); | 2951 | struct igb_adapter *adapter = netdev_priv(netdev); |
2952 | unsigned int first; | 2952 | unsigned int first; |
2953 | unsigned int tx_flags = 0; | 2953 | unsigned int tx_flags = 0; |
2954 | unsigned int len; | ||
2955 | u8 hdr_len = 0; | 2954 | u8 hdr_len = 0; |
2956 | int tso = 0; | 2955 | int tso = 0; |
2957 | 2956 | ||
2958 | len = skb_headlen(skb); | ||
2959 | |||
2960 | if (test_bit(__IGB_DOWN, &adapter->state)) { | 2957 | if (test_bit(__IGB_DOWN, &adapter->state)) { |
2961 | dev_kfree_skb_any(skb); | 2958 | dev_kfree_skb_any(skb); |
2962 | return NETDEV_TX_OK; | 2959 | return NETDEV_TX_OK; |