[PATCH linux-next] x86:uv: fix boolreturn.cocci warnings

From: CGEL
Date: Tue Aug 24 2021 - 03:21:36 EST


From: Jing Yangyang <jing.yangyang@xxxxxxxxxx>

./arch/x86/include/asm/uv/uv.h:36:53-54:WARNING:return of 0/1 in
function 'is_early_uv_system' with return type bool

Return statements in functions returning bool should use true/false
instead of 1/0.

Generated by: scripts/coccinelle/misc/boolreturn.cocci

Reported-by: Zeal Robot <zealci@xxxxxxxxxx>
Signed-off-by: Jing Yangyang <jing.yangyang@xxxxxxxxxx>
---
arch/x86/include/asm/uv/uv.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/include/asm/uv/uv.h b/arch/x86/include/asm/uv/uv.h
index 648eb23..9395925 100644
--- a/arch/x86/include/asm/uv/uv.h
+++ b/arch/x86/include/asm/uv/uv.h
@@ -33,7 +33,7 @@ static inline bool is_early_uv_system(void)
#else /* !X86_UV */

static inline enum uv_system_type get_uv_system_type(void) { return UV_NONE; }
-static inline bool is_early_uv_system(void) { return 0; }
+static inline bool is_early_uv_system(void) { return false; }
static inline int is_uv_system(void) { return 0; }
static inline int is_uv_hubbed(int uv) { return 0; }
static inline void uv_cpu_init(void) { }
--
1.8.3.1