diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-03-30 07:02:15 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-03-31 08:51:10 +0200 |
commit | b05b7d9563f11bf3d7b7f3f53cd74cbfab107355 (patch) | |
tree | 1d8a95ba1373a5ec8f1f591751bd8bc2dffd2229 /drivers/net/ksz884x.c | |
parent | Add hotplug support to mcp251x driver (diff) | |
download | linux-b05b7d9563f11bf3d7b7f3f53cd74cbfab107355.tar.xz linux-b05b7d9563f11bf3d7b7f3f53cd74cbfab107355.zip |
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/ksz884x.c')
-rw-r--r-- | drivers/net/ksz884x.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ksz884x.c b/drivers/net/ksz884x.c index b47a2b3e116e..b843bf7d8c17 100644 --- a/drivers/net/ksz884x.c +++ b/drivers/net/ksz884x.c @@ -5043,8 +5043,6 @@ static inline int rx_proc(struct net_device *dev, struct ksz_hw* hw, dma_buf->skb->data, packet_len); } while (0); - skb->dev = dev; - skb->protocol = eth_type_trans(skb, dev); if (hw->rx_cfg & (DMA_RX_CSUM_UDP | DMA_RX_CSUM_TCP)) |