ll_temac: remove unnecessary setting of skb->dev
authorJon Mason <jdmason@kudzu.us>
Mon, 9 Jul 2012 14:09:35 +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 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>
drivers/net/ethernet/xilinx/ll_temac_main.c

index 1817d0e18fb2209d16033fad2eee80cb65751a41..f8e351880119674c0c10b270a45fdf47469dd702 100644 (file)
@@ -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);