summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorOlaf Mandel <o.mandel@menlosystems.com>2014-10-10 22:25:46 (GMT)
committerTom Rini <trini@ti.com>2014-10-27 15:04:00 (GMT)
commitbe9445c0d44751e5da3c78fbe07cf73e5f40184b (patch)
treea274fabc78d5ff4f383239fab88c42aabcbaabfa /doc
parent91e2be4e6f612a8b0f9fb721fe48e3ece4e23778 (diff)
downloadu-boot-be9445c0d44751e5da3c78fbe07cf73e5f40184b.tar.xz
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: Olaf Mandel <o.mandel@menlosystems.com> Signed-off-by: Marek Vasut <marex@denx.de> Cc: Albert ARIBAUD <albert.u.boot@aribaud.net> Cc: Tom Rini <trini@ti.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/README.unaligned-memory-access.txt2
1 files changed, 1 insertions, 1 deletions
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
}