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:
6502507
)
batman-adv: fix coccinelle warnings
author
Fengguang Wu
<
[email protected]
>
Mon, 6 Jan 2014 16:09:46 +0000
(17:09 +0100)
committer
Antonio Quartulli
<
[email protected]
>
Sat, 22 Mar 2014 07:50:26 +0000
(08:50 +0100)
net/batman-adv/network-coding.c:1535:1-7: Replace memcpy with struct assignment
Generated by: coccinelle/misc/memcpy-assign.cocci
Signed-off-by: Fengguang Wu <
[email protected]
>
Signed-off-by: Martin Hundebøll <
[email protected]
>
Signed-off-by: Marek Lindner <
[email protected]
>
Signed-off-by: Antonio Quartulli <
[email protected]
>
net/batman-adv/network-coding.c
patch
|
blob
|
history
diff --git
a/net/batman-adv/network-coding.c
b/net/batman-adv/network-coding.c
index f1b604d88dc3c2124c86083f36e5bafaad50b9bc..801ece699d7f546631f330076ff392afdc73b507 100644
(file)
--- a/
net/batman-adv/network-coding.c
+++ b/
net/batman-adv/network-coding.c
@@
-1636,7
+1636,7
@@
batadv_nc_skb_decode_packet(struct batadv_priv *bat_priv, struct sk_buff *skb,
/* Reconstruct original mac header */
ethhdr = eth_hdr(skb);
-
memcpy(ethhdr, ðhdr_tmp, sizeof(*ethhdr))
;
+
*ethhdr = ethhdr_tmp
;
/* Select the correct unicast header information based on the location
* of our mac address in the coded_packet header