Commit be9445c0 authored by Olaf Mandel's avatar Olaf Mandel Committed by Tom Rini
Browse files

doc: Fix comparison operator

Align the documentation with the include/linux/etherdevice.h ,
which is where this example comes from. The return value from
the check was inverted in the documentation.
Signed-off-by: default avatarOlaf Mandel <>
Signed-off-by: default avatarMarek Vasut <>
Cc: Albert ARIBAUD <>
Cc: Tom Rini <>
parent 91e2be4e
......@@ -154,7 +154,7 @@ bool ether_addr_equal(const u8 *addr1, const u8 *addr2)
const u16 *a = (const u16 *)addr1;
const u16 *b = (const u16 *)addr2;
return ((a[0] ^ b[0]) | (a[1] ^ b[1]) | (a[2] ^ b[2])) != 0;
return ((a[0] ^ b[0]) | (a[1] ^ b[1]) | (a[2] ^ b[2])) == 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment