summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorCihangir Akturk <cakturk@gmail.com>2016-12-17 19:42:17 +0200
committerJonathan Corbet <corbet@lwn.net>2016-12-27 13:08:42 -0700
commit36f671be1db1b17d3d4ab0c8b47f81ccb1efcb75 (patch)
treed79b8821d94660c65279378b04474e23f2e01b22 /Documentation
parent66115335fbb411365c23349b2fbe7e041eabbaf2 (diff)
Documentation/unaligned-memory-access.txt: fix incorrect comparison operator
In the actual implementation ether_addr_equal function tests for equality to 0 when returning. It seems in commit 0d74c4 it is somehow overlooked to change this operator to reflect the actual function. Signed-off-by: Cihangir Akturk <cakturk@gmail.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/unaligned-memory-access.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/unaligned-memory-access.txt b/Documentation/unaligned-memory-access.txt
index a445da098bc6..3f76c0c37920 100644
--- a/Documentation/unaligned-memory-access.txt
+++ b/Documentation/unaligned-memory-access.txt
@@ -151,7 +151,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
}