Skip to contentSkip to conversation

x86/platform/uv: Use false for return type bool

PATCH New Samuel Zou 1 participant 1 message May 6, 2020

Subsystems (2)
lore
Share & tools
lore

Samuel Zou

author
#0 lore raw

PATCH 1/1 x86/platform/uv: Use false for return type bool

Fix the following coccicheck warning:

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

---
 arch/x86/include/asm/uv/uv.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/include/asm/uv/uv.h +1 -1
index 91e088a..334da92 100644
@@ -42,7 +42,7 @@ extern const struct cpumask *uv_flush_tlb_others(const struct cpumask *cpumask,
 #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 int is_uv_hubless(int uv) { return 0; }
Signature · 1 line
2.6.2