Skip to content

Commit

Permalink
batman-adv: get rid of pointless cast in memcpy()
Browse files Browse the repository at this point in the history
memcpy() arguments are void *, precisely to avoid that kind of pointless
casts.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
  • Loading branch information
Al Viro authored and Antonio Quartulli committed Jun 18, 2012
1 parent 08ad76e commit 1a5852d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/batman-adv/bridge_loop_avoidance.c
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ static void bla_send_announce(struct bat_priv *bat_priv,

memcpy(mac, announce_mac, 4);
crc = htons(backbone_gw->crc);
memcpy(&mac[4], (uint8_t *)&crc, 2);
memcpy(&mac[4], &crc, 2);

bla_send_claim(bat_priv, mac, backbone_gw->vid, CLAIM_TYPE_ANNOUNCE);

Expand Down

0 comments on commit 1a5852d

Please sign in to comment.