From: Al Viro Date: Sun, 22 Apr 2012 06:50:29 +0000 (+0100) Subject: batman-adv: get rid of pointless cast in memcpy() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1a5852d81a664e5a6456f82dff6f31b06dc2bede;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git batman-adv: get rid of pointless cast in memcpy() memcpy() arguments are void *, precisely to avoid that kind of pointless casts. Signed-off-by: Al Viro Signed-off-by: Sven Eckelmann --- diff --git a/net/batman-adv/bridge_loop_avoidance.c b/net/batman-adv/bridge_loop_avoidance.c index 5c1ac559edb..89e2b1cda18 100644 --- a/net/batman-adv/bridge_loop_avoidance.c +++ b/net/batman-adv/bridge_loop_avoidance.c @@ -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);