aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/atl1e/atl1e_main.c
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2010-03-30 01:02:15 -0400
committerDavid S. Miller <davem@davemloft.net>2010-03-31 02:51:10 -0400
commitb05b7d9563f11bf3d7b7f3f53cd74cbfab107355 (patch)
tree1d8a95ba1373a5ec8f1f591751bd8bc2dffd2229 /drivers/net/atl1e/atl1e_main.c
parente446630c960946b5c1762e4eadb618becef599e7 (diff)
net: remove redundant code
eth_type_trans(skb, netdev) does the "skb->dev = netdev;" initialization, we can remove it from various network drivers. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/atl1e/atl1e_main.c')
-rw-r--r--drivers/net/atl1e/atl1e_main.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/atl1e/atl1e_main.c b/drivers/net/atl1e/atl1e_main.c
index 73302ae468aa..7231b5779122 100644
--- a/drivers/net/atl1e/atl1e_main.c
+++ b/drivers/net/atl1e/atl1e_main.c
@@ -1428,7 +1428,6 @@ static void atl1e_clean_rx_irq(struct atl1e_adapter *adapter, u8 que,
1428 "Memory squeeze, deferring packet\n"); 1428 "Memory squeeze, deferring packet\n");
1429 goto skip_pkt; 1429 goto skip_pkt;
1430 } 1430 }
1431 skb->dev = netdev;
1432 memcpy(skb->data, (u8 *)(prrs + 1), packet_size); 1431 memcpy(skb->data, (u8 *)(prrs + 1), packet_size);
1433 skb_put(skb, packet_size); 1432 skb_put(skb, packet_size);
1434 skb->protocol = eth_type_trans(skb, netdev); 1433 skb->protocol = eth_type_trans(skb, netdev);