aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/greth.c
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2010-03-30 05:02:15 +0000
committerDavid S. Miller <davem@davemloft.net>2010-03-30 23:51:10 -0700
commitb05b7d9563f11bf3d7b7f3f53cd74cbfab107355 (patch)
tree1d8a95ba1373a5ec8f1f591751bd8bc2dffd2229 /drivers/net/greth.c
parente446630c960946b5c1762e4eadb618becef599e7 (diff)
downloadkernel_samsung_crespo-b05b7d9563f11bf3d7b7f3f53cd74cbfab107355.zip
kernel_samsung_crespo-b05b7d9563f11bf3d7b7f3f53cd74cbfab107355.tar.gz
kernel_samsung_crespo-b05b7d9563f11bf3d7b7f3f53cd74cbfab107355.tar.bz2
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/greth.c')
-rw-r--r--drivers/net/greth.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/greth.c b/drivers/net/greth.c
index 2b9c1cb..c5e0d28 100644
--- a/drivers/net/greth.c
+++ b/drivers/net/greth.c
@@ -894,7 +894,6 @@ static int greth_rx_gbit(struct net_device *dev, int limit)
else
skb->ip_summed = CHECKSUM_NONE;
- skb->dev = dev;
skb->protocol = eth_type_trans(skb, dev);
dev->stats.rx_packets++;
netif_receive_skb(skb);