Skip to contentSkip to conversation

batman-adv: use the name of the array as pointer

PATCH Applied Antonio Quartulli 2 participants 2 messages Feb 26, 2014 – Mar 11, 2014

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 batman-adv: use the name of the array as pointer

Introduced by fb4756fe5f6e58ca2ab208ca634ae4c8dd6e9499 ("batman-adv: use ether_addr_copy instead of memcpy in multicast code")

---

change from v1:
- added Signed-off-by clause

 multicast.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
multicast.c +1 -1
index e69143b..998b429 100644
@@ -45,7 +45,7 @@ static int batadv_mcast_mla_softif_get(struct net_device *dev,
 			break;
 		}
 
-		ether_addr_copy(&new->addr, &mc_list_entry->addr);
+		ether_addr_copy(new->addr, mc_list_entry->addr);
 		hlist_add_head(&new->list, mcast_list);
 		ret++;
 	}
Signature · 1 line
1.8.4.5
#1 lore raw
Quoted 11 lines · On Wednesday 26 February 2014 14:13:32 Antonio Quartulli wrote:

Introduced by fb4756fe5f6e58ca2ab208ca634ae4c8dd6e9499 ("batman-adv: use ether_addr_copy instead of memcpy in multicast code")

---

change from v1:
- added Signed-off-by clause

 multicast.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied in revision f5129b2.

Thanks,
Marek