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>
This commit is contained in:
committed by
David S. Miller
parent
e446630c96
commit
b05b7d9563
@@ -396,7 +396,6 @@ static void s6gmac_rx_interrupt(struct net_device *dev)
|
||||
} else {
|
||||
skb_put(skb, (pfx >> S6_GMAC_BURST_POSTRD_LEN)
|
||||
& S6_GMAC_BURST_POSTRD_LEN_MASK);
|
||||
skb->dev = dev;
|
||||
skb->protocol = eth_type_trans(skb, dev);
|
||||
skb->ip_summed = CHECKSUM_UNNECESSARY;
|
||||
netif_rx(skb);
|
||||
|
Reference in New Issue
Block a user