]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
bcachefs: eytzinger self tests: fix cmp_u16 typo
authorAndreas Gruenbacher <agruenba@redhat.com>
Tue, 26 Nov 2024 22:33:55 +0000 (23:33 +0100)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 15 Mar 2025 01:02:13 +0000 (21:02 -0400)
Fix an obvious typo in cmp_u16().

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/util.c

index 8120e9d2667c00519248592612beb0b22dfcb03a..3a69e3409e894b140c054963b68340e3b6e9bbe6 100644 (file)
@@ -774,7 +774,7 @@ static inline int cmp_u16(const void *_l, const void *_r)
 {
        const u16 *l = _l, *r = _r;
 
-       return (*l > *r) - (*r - *l);
+       return (*l > *r) - (*r > *l);
 }
 
 static void eytzinger0_find_test_val(u16 *test_array, unsigned nr, u16 search)