Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit abae9479 authored by Fengguang Wu's avatar Fengguang Wu Committed by Antonio Quartulli
Browse files

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: default avatarFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: default avatarMartin Hundebøll <martin@hundeboll.net>
Signed-off-by: default avatarMarek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: default avatarAntonio Quartulli <antonio@meshcoding.com>
parent 65025079
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1636,7 +1636,7 @@ batadv_nc_skb_decode_packet(struct batadv_priv *bat_priv, struct sk_buff *skb,


	/* Reconstruct original mac header */
	/* Reconstruct original mac header */
	ethhdr = eth_hdr(skb);
	ethhdr = eth_hdr(skb);
	memcpy(ethhdr, &ethhdr_tmp, sizeof(*ethhdr));
	*ethhdr = ethhdr_tmp;


	/* Select the correct unicast header information based on the location
	/* Select the correct unicast header information based on the location
	 * of our mac address in the coded_packet header
	 * of our mac address in the coded_packet header