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:
parent
d233d70771
commit
0b43b9a703
1 changed files with 0 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue