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
@@ -638,7 +638,6 @@ static void xemaclite_rx_handler(struct net_device *dev)
|
||||
}
|
||||
|
||||
skb_put(skb, len); /* Tell the skb how much data we got */
|
||||
skb->dev = dev; /* Fill out required meta-data */
|
||||
|
||||
skb->protocol = eth_type_trans(skb, dev);
|
||||
skb->ip_summed = CHECKSUM_NONE;
|
||||
|
Reference in New Issue
Block a user