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/atl1c | |
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/atl1c')
-rw-r--r-- | drivers/net/atl1c/atl1c_main.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/atl1c/atl1c_main.c b/drivers/net/atl1c/atl1c_main.c index 50dc531a02d8..a5508e1b261b 100644 --- a/drivers/net/atl1c/atl1c_main.c +++ b/drivers/net/atl1c/atl1c_main.c | |||
@@ -1817,7 +1817,6 @@ rrs_checked: | |||
1817 | atl1c_clean_rfd(rfd_ring, rrs, rfd_num); | 1817 | atl1c_clean_rfd(rfd_ring, rrs, rfd_num); |
1818 | skb_put(skb, length - ETH_FCS_LEN); | 1818 | skb_put(skb, length - ETH_FCS_LEN); |
1819 | skb->protocol = eth_type_trans(skb, netdev); | 1819 | skb->protocol = eth_type_trans(skb, netdev); |
1820 | skb->dev = netdev; | ||
1821 | atl1c_rx_checksum(adapter, skb, rrs); | 1820 | atl1c_rx_checksum(adapter, skb, rrs); |
1822 | if (unlikely(adapter->vlgrp) && rrs->word3 & RRS_VLAN_INS) { | 1821 | if (unlikely(adapter->vlgrp) && rrs->word3 & RRS_VLAN_INS) { |
1823 | u16 vlan; | 1822 | u16 vlan; |