You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
ll_temac: remove unnecessary setting of skb->dev
skb->dev is being unnecessarily set by the driver on packet recieve. eth_type_trans already sets skb->dev to the proper value and it is not referenced anywhere else in the dirver, thus making its setting unnecessary. Signed-off-by: Jon Mason <jdmason@kudzu.us> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
d233d70771
commit
0b43b9a703
@@ -768,7 +768,6 @@ static void ll_temac_recv(struct net_device *ndev)
|
||||
DMA_FROM_DEVICE);
|
||||
|
||||
skb_put(skb, length);
|
||||
skb->dev = ndev;
|
||||
skb->protocol = eth_type_trans(skb, ndev);
|
||||
skb_checksum_none_assert(skb);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user