diff --git a/doc/README.unaligned-memory-access.txt b/doc/README.unaligned-memory-access.txt index 00529f5..70a85f9 100644 --- a/doc/README.unaligned-memory-access.txt +++ b/doc/README.unaligned-memory-access.txt @@ -154,7 +154,7 @@ bool ether_addr_equal(const u8 *addr1, const u8 *addr2) #else 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; #endif }