summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorHuilong Deng <denghuilong@cdjrlc.com>2021-10-17 11:20:57 +0200
committerVasily Gorbik <gor@linux.ibm.com>2021-10-26 15:21:29 +0200
commitff7a1eefdff5867db4a4f678deed0d04f32cad15 (patch)
tree9ecaf87005ee5aa55f730488a6eb00be94d87b5e /arch
parents390: add support for BEAR enhancement facility (diff)
downloadlinux-ff7a1eefdff5867db4a4f678deed0d04f32cad15.tar.xz
linux-ff7a1eefdff5867db4a4f678deed0d04f32cad15.zip
s390/bitops: return true/false (not 1/0) from bool functions
Signed-off-by: Huilong Deng <denghuilong@cdjrlc.com> Link: https://lore.kernel.org/r/20211017092057.24179-1-denghuilong@cdjrlc.com Signed-off-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch')
-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);
}