Skip to content

Commit ff7a1ee

Browse files
Huilong DengVasily Gorbik
authored andcommitted
s390/bitops: return true/false (not 1/0) from bool functions
Signed-off-by: Huilong Deng <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Heiko Carstens <[email protected]> Signed-off-by: Vasily Gorbik <[email protected]>
1 parent 3b051e8 commit ff7a1ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/s390/include/asm/bitops.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ static inline bool arch_test_and_set_bit_lock(unsigned long nr,
188188
volatile unsigned long *ptr)
189189
{
190190
if (arch_test_bit(nr, ptr))
191-
return 1;
191+
return true;
192192
return arch_test_and_set_bit(nr, ptr);
193193
}
194194

0 commit comments

Comments
 (0)