mirror of
https://github.com/torvalds/linux.git
synced 2026-07-30 11:11:26 +02:00
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>
This commit is contained in:
parent
0ede49212a
commit
0766f5599c
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user