diff options
author | Huilong Deng <denghuilong@cdjrlc.com> | 2021-10-17 12:20:57 +0300 |
---|---|---|
committer | Vasily Gorbik <gor@linux.ibm.com> | 2021-10-26 16:21:29 +0300 |
commit | ff7a1eefdff5867db4a4f678deed0d04f32cad15 (patch) | |
tree | 9ecaf87005ee5aa55f730488a6eb00be94d87b5e /arch/s390 | |
parent | 3b051e89da70d464a036a86d70ce2ed61c73f792 (diff) | |
download | linux-ff7a1eefdff5867db4a4f678deed0d04f32cad15.tar.xz |
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/s390')
-rw-r--r-- | arch/s390/include/asm/bitops.h | 2 |
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); } |