From f06c4576b781a76bdc41031d5b97cf858cc2143a Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Wed, 4 Mar 2020 15:05:22 +0200 Subject: *: Return bool type for bool functions Signed-off-by: Donatas Abraitis --- lib/seqlock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/seqlock.c') diff --git a/lib/seqlock.c b/lib/seqlock.c index c05ec19db..588a1175b 100644 --- a/lib/seqlock.c +++ b/lib/seqlock.c @@ -254,7 +254,7 @@ bool seqlock_check(struct seqlock *sqlo, seqlock_val_t val) cur = atomic_load_explicit(&sqlo->pos, memory_order_relaxed); if (!(cur & SEQLOCK_HELD)) - return 1; + return true; cur = SEQLOCK_VAL(cur) - val - 1; assert(cur < 0x40000000 || cur > 0xc0000000); return cur < 0x80000000; -- cgit v1.2.3