From: Andreas Gruenbacher Date: Tue, 26 Nov 2024 22:33:55 +0000 (+0100) Subject: bcachefs: eytzinger self tests: fix cmp_u16 typo X-Git-Tag: v6.15-rc1~146^2~123 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0766f5599cbba9cb567c8ed2d1da3bfc65550791;p=thirdparty%2Fkernel%2Flinux.git bcachefs: eytzinger self tests: fix cmp_u16 typo Fix an obvious typo in cmp_u16(). Signed-off-by: Andreas Gruenbacher Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/util.c b/fs/bcachefs/util.c index 8120e9d2667c0..3a69e3409e894 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)