diff options
author | Kris Katterjohn <kjak@users.sourceforge.net> | 2006-01-09 19:01:43 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-01-10 15:54:28 -0500 |
commit | d3f4a687f683f536506d0aa6b22e6cb3e79639ce (patch) | |
tree | d1f5fb7177d1dd254e63189cb89e51a86a24f171 /net/bluetooth/bnep | |
parent | 770cfbcffdf0011ecf3a12435ecb5604c4c97a19 (diff) |
[NET]: Change memcmp(,,ETH_ALEN) to compare_ether_addr()
This changes some memcmp(one,two,ETH_ALEN) to compare_ether_addr(one,two).
Signed-off-by: Kris Katterjohn <kjak@users.sourceforge.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bluetooth/bnep')
-rw-r--r-- | net/bluetooth/bnep/core.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/bluetooth/bnep/core.c b/net/bluetooth/bnep/core.c index 682bf20af52d..cbb20c32a6c8 100644 --- a/net/bluetooth/bnep/core.c +++ b/net/bluetooth/bnep/core.c | |||
@@ -75,7 +75,7 @@ static struct bnep_session *__bnep_get_session(u8 *dst) | |||
75 | 75 | ||
76 | list_for_each(p, &bnep_session_list) { | 76 | list_for_each(p, &bnep_session_list) { |
77 | s = list_entry(p, struct bnep_session, list); | 77 | s = list_entry(p, struct bnep_session, list); |
78 | if (!memcmp(dst, s->eh.h_source, ETH_ALEN)) | 78 | if (!compare_ether_addr(dst, s->eh.h_source)) |
79 | return s; | 79 | return s; |
80 | } | 80 | } |
81 | return NULL; | 81 | return NULL; |
@@ -420,10 +420,10 @@ static inline int bnep_tx_frame(struct bnep_session *s, struct sk_buff *skb) | |||
420 | iv[il++] = (struct kvec) { &type, 1 }; | 420 | iv[il++] = (struct kvec) { &type, 1 }; |
421 | len++; | 421 | len++; |
422 | 422 | ||
423 | if (!memcmp(eh->h_dest, s->eh.h_source, ETH_ALEN)) | 423 | if (!compare_ether_addr(eh->h_dest, s->eh.h_source)) |
424 | type |= 0x01; | 424 | type |= 0x01; |
425 | 425 | ||
426 | if (!memcmp(eh->h_source, s->eh.h_dest, ETH_ALEN)) | 426 | if (!compare_ether_addr(eh->h_source, s->eh.h_dest)) |
427 | type |= 0x02; | 427 | type |= 0x02; |
428 | 428 | ||
429 | if (type) | 429 | if (type) |