lantiq_etop: remove unnecessary setting of skb->dev
skb->dev is being unnecessarily set before calling eth_type_trans. eth_type_trans already sets skb->dev to the proper value, thus making this unnecessary. Signed-off-by: Jon Mason <jdmason@kudzu.us> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Родитель
95f2bce55b
Коммит
4a4511a019
|
@ -149,7 +149,6 @@ ltq_etop_hw_receive(struct ltq_etop_chan *ch)
|
|||
spin_unlock_irqrestore(&priv->lock, flags);
|
||||
|
||||
skb_put(skb, len);
|
||||
skb->dev = ch->netdev;
|
||||
skb->protocol = eth_type_trans(skb, ch->netdev);
|
||||
netif_receive_skb(skb);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче