summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/lantiq_etop.c
diff options
context:
space:
mode:
authorJon Mason <jdmason@kudzu.us>2012-07-09 16:09:28 +0200
committerDavid S. Miller <davem@davemloft.net>2012-07-11 08:24:57 +0200
commit4a4511a0199a2653c88f4475e4bae77a7cc016e0 (patch)
treed51f679684f6164bb9f950634cfe224139369f55 /drivers/net/ethernet/lantiq_etop.c
parentnetxen: remove unnecessary setting of skb->dev (diff)
downloadlinux-4a4511a0199a2653c88f4475e4bae77a7cc016e0.tar.xz
linux-4a4511a0199a2653c88f4475e4bae77a7cc016e0.zip
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>
Diffstat (limited to 'drivers/net/ethernet/lantiq_etop.c')
-rw-r--r--drivers/net/ethernet/lantiq_etop.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/lantiq_etop.c b/drivers/net/ethernet/lantiq_etop.c
index 5dc9cbd51514..9fa39ebf545d 100644
--- a/drivers/net/ethernet/lantiq_etop.c
+++ b/drivers/net/ethernet/lantiq_etop.c
@@ -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);
}