aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bcm63xx_enet.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/bcm63xx_enet.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/bcm63xx_enet.c')
-rw-r--r--drivers/net/bcm63xx_enet.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/bcm63xx_enet.c b/drivers/net/bcm63xx_enet.c
index 8cdcab7655c0..37eb8021de1c 100644
--- a/drivers/net/bcm63xx_enet.c
+++ b/drivers/net/bcm63xx_enet.c
@@ -340,7 +340,6 @@ static int bcm_enet_receive_queue(struct net_device *dev, int budget)
340 } 340 }
341 341
342 skb_put(skb, len); 342 skb_put(skb, len);
343 skb->dev = dev;
344 skb->protocol = eth_type_trans(skb, dev); 343 skb->protocol = eth_type_trans(skb, dev);
345 priv->stats.rx_packets++; 344 priv->stats.rx_packets++;
346 priv->stats.rx_bytes += len; 345 priv->stats.rx_bytes += len;