lantiq_etop: remove unnecessary setting of skb->dev
authorJon Mason <jdmason@kudzu.us>
Mon, 9 Jul 2012 14:09:28 +0000 (14:09 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Jul 2012 06:24:57 +0000 (23:24 -0700)
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>
drivers/net/ethernet/lantiq_etop.c

index 5dc9cbd5151417737c1779df53f102045da92595..9fa39ebf545d1aa3fad63ebf52954835ce614b1d 100644 (file)
@@ -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);
 }