summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/util.c
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruenba@redhat.com>2024-11-26 23:33:55 +0100
committerKent Overstreet <kent.overstreet@linux.dev>2025-03-14 21:02:13 -0400
commit0766f5599cbba9cb567c8ed2d1da3bfc65550791 (patch)
tree5ea1624599db91217594a807db18dd343d384b72 /fs/bcachefs/util.c
parentbcachefs: eytzinger self tests: missing newline termination (diff)
downloadlinux-0766f5599cbba9cb567c8ed2d1da3bfc65550791.tar.gz
linux-0766f5599cbba9cb567c8ed2d1da3bfc65550791.zip
bcachefs: eytzinger self tests: fix cmp_u16 typo
Fix an obvious typo in cmp_u16(). Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/util.c')
-rw-r--r--fs/bcachefs/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/util.c b/fs/bcachefs/util.c
index 8120e9d2667c..3a69e3409e89 100644
--- a/fs/bcachefs/util.c
+++ b/fs/bcachefs/util.c
@@ -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)