projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d233d70
)
ll_temac: remove unnecessary setting of skb->dev
author
Jon Mason
<
[email protected]
>
Mon, 9 Jul 2012 14:09:35 +0000
(14:09 +0000)
committer
David S. Miller
<
[email protected]
>
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 <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/xilinx/ll_temac_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/xilinx/ll_temac_main.c
b/drivers/net/ethernet/xilinx/ll_temac_main.c
index 1817d0e18fb2209d16033fad2eee80cb65751a41..f8e351880119674c0c10b270a45fdf47469dd702 100644
(file)
--- a/
drivers/net/ethernet/xilinx/ll_temac_main.c
+++ b/
drivers/net/ethernet/xilinx/ll_temac_main.c
@@
-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);