diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-03-30 01:02:15 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-03-31 02:51:10 -0400 |
commit | b05b7d9563f11bf3d7b7f3f53cd74cbfab107355 (patch) | |
tree | 1d8a95ba1373a5ec8f1f591751bd8bc2dffd2229 /drivers/net/s6gmac.c | |
parent | e446630c960946b5c1762e4eadb618becef599e7 (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/s6gmac.c')
-rw-r--r-- | drivers/net/s6gmac.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/s6gmac.c b/drivers/net/s6gmac.c index 45f26344b368..6b12524ad7c1 100644 --- a/drivers/net/s6gmac.c +++ b/drivers/net/s6gmac.c | |||
@@ -396,7 +396,6 @@ static void s6gmac_rx_interrupt(struct net_device *dev) | |||
396 | } else { | 396 | } else { |
397 | skb_put(skb, (pfx >> S6_GMAC_BURST_POSTRD_LEN) | 397 | skb_put(skb, (pfx >> S6_GMAC_BURST_POSTRD_LEN) |
398 | & S6_GMAC_BURST_POSTRD_LEN_MASK); | 398 | & S6_GMAC_BURST_POSTRD_LEN_MASK); |
399 | skb->dev = dev; | ||
400 | skb->protocol = eth_type_trans(skb, dev); | 399 | skb->protocol = eth_type_trans(skb, dev); |
401 | skb->ip_summed = CHECKSUM_UNNECESSARY; | 400 | skb->ip_summed = CHECKSUM_UNNECESSARY; |
402 | netif_rx(skb); | 401 | netif_rx(skb); |