diff --git a/net/batman-adv/main.h b/net/batman-adv/main.h index f94f287b867083e755bd62dcc56af88f30837b33..322dd7323732cf724f1bedbdc0f7d246bff1bb20 100644 --- a/net/batman-adv/main.h +++ b/net/batman-adv/main.h @@ -266,7 +266,7 @@ static inline void batadv_dbg(int type __always_unused, */ static inline int batadv_compare_eth(const void *data1, const void *data2) { - return (memcmp(data1, data2, ETH_ALEN) == 0 ? 1 : 0); + return ether_addr_equal_unaligned(data1, data2); } /**