diff options
Diffstat (limited to 'net/batman-adv')
-rw-r--r-- | net/batman-adv/originator.c | 2 | ||||
-rw-r--r-- | net/batman-adv/translation-table.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/net/batman-adv/originator.c b/net/batman-adv/originator.c index 8ab14340d10f..803ab4be40c2 100644 --- a/net/batman-adv/originator.c +++ b/net/batman-adv/originator.c | |||
@@ -41,7 +41,7 @@ int batadv_compare_orig(const struct hlist_node *node, const void *data2) | |||
41 | const void *data1 = container_of(node, struct batadv_orig_node, | 41 | const void *data1 = container_of(node, struct batadv_orig_node, |
42 | hash_entry); | 42 | hash_entry); |
43 | 43 | ||
44 | return (memcmp(data1, data2, ETH_ALEN) == 0 ? 1 : 0); | 44 | return batadv_compare_eth(data1, data2); |
45 | } | 45 | } |
46 | 46 | ||
47 | /** | 47 | /** |
diff --git a/net/batman-adv/translation-table.c b/net/batman-adv/translation-table.c index 4add57d4857f..06506e6f9006 100644 --- a/net/batman-adv/translation-table.c +++ b/net/batman-adv/translation-table.c | |||
@@ -51,7 +51,7 @@ static int batadv_compare_tt(const struct hlist_node *node, const void *data2) | |||
51 | const void *data1 = container_of(node, struct batadv_tt_common_entry, | 51 | const void *data1 = container_of(node, struct batadv_tt_common_entry, |
52 | hash_entry); | 52 | hash_entry); |
53 | 53 | ||
54 | return (memcmp(data1, data2, ETH_ALEN) == 0 ? 1 : 0); | 54 | return batadv_compare_eth(data1, data2); |
55 | } | 55 | } |
56 | 56 | ||
57 | /** | 57 | /** |