diff options
author | Fengguang Wu <fengguang.wu@intel.com> | 2014-01-06 11:09:46 -0500 |
---|---|---|
committer | Antonio Quartulli <antonio@meshcoding.com> | 2014-03-22 03:50:26 -0400 |
commit | abae9479ca9fa5616ae0debfbda54bf5424001df (patch) | |
tree | 444a043f562185b6c91558f6620b0cf5a719a2a0 /net/batman-adv | |
parent | 65025079d2ddb8091d30b356c0b0f79a8d2254c4 (diff) |
batman-adv: fix coccinelle warnings
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 <fengguang.wu@intel.com>
Signed-off-by: Martin Hundebøll <martin@hundeboll.net>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
Diffstat (limited to 'net/batman-adv')
-rw-r--r-- | net/batman-adv/network-coding.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/network-coding.c b/net/batman-adv/network-coding.c index f1b604d88dc3..801ece699d7f 100644 --- 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, | |||
1636 | 1636 | ||
1637 | /* Reconstruct original mac header */ | 1637 | /* Reconstruct original mac header */ |
1638 | ethhdr = eth_hdr(skb); | 1638 | ethhdr = eth_hdr(skb); |
1639 | memcpy(ethhdr, ðhdr_tmp, sizeof(*ethhdr)); | 1639 | *ethhdr = ethhdr_tmp; |
1640 | 1640 | ||
1641 | /* Select the correct unicast header information based on the location | 1641 | /* Select the correct unicast header information based on the location |
1642 | * of our mac address in the coded_packet header | 1642 | * of our mac address in the coded_packet header |