Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0b43b9a7 authored by Jon Mason's avatar Jon Mason Committed by David S. Miller
Browse files

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: default avatarJon Mason <jdmason@kudzu.us>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d233d707
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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);