aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHuilong Deng <[email protected]>2021-10-17 17:20:57 +0800
committerVasily Gorbik <[email protected]>2021-10-26 15:21:29 +0200
commitff7a1eefdff5867db4a4f678deed0d04f32cad15 (patch)
tree9ecaf87005ee5aa55f730488a6eb00be94d87b5e
parent3b051e89da70d464a036a86d70ce2ed61c73f792 (diff)
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]>
-rw-r--r--arch/s390/include/asm/bitops.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/include/asm/bitops.h b/arch/s390/include/asm/bitops.h
index fd149480b6e2..5a530c552c23 100644
--- a/arch/s390/include/asm/bitops.h
+++ b/arch/s390/include/asm/bitops.h
@@ -188,7 +188,7 @@ static inline bool arch_test_and_set_bit_lock(unsigned long nr,
volatile unsigned long *ptr)
{
if (arch_test_bit(nr, ptr))
- return 1;
+ return true;
return arch_test_and_set_bit(nr, ptr);
}