* [PATCH linux-next] x86:irq_remapping: fix boolreturn.cocci warnings
@ 2021-08-24 7:02 CGEL
0 siblings, 0 replies; only message in thread
From: CGEL @ 2021-08-24 7:02 UTC (permalink / raw)
To: Thomas Gleixner
Cc: Ingo Molnar, Borislav Petkov, x86, David Woodhouse, Joerg Roedel,
linux-kernel, Jing Yangyang, Zeal Robot
From: Jing Yangyang <jing.yangyang@zte.com.cn>
./arch/x86/include/asm/irq_remapping.h:59:70-71:WARNING:return of 0/1
in function 'irq_remapping_cap' 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@zte.com.cn>
Signed-off-by: Jing Yangyang <jing.yangyang@zte.com.cn>
---
arch/x86/include/asm/irq_remapping.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/include/asm/irq_remapping.h b/arch/x86/include/asm/irq_remapping.h
index 7cc4943..2b0d2b7 100644
--- a/arch/x86/include/asm/irq_remapping.h
+++ b/arch/x86/include/asm/irq_remapping.h
@@ -56,7 +56,7 @@ static inline struct irq_domain *arch_get_ir_parent_domain(void)
#else /* CONFIG_IRQ_REMAP */
-static inline bool irq_remapping_cap(enum irq_remap_cap cap) { return 0; }
+static inline bool irq_remapping_cap(enum irq_remap_cap cap) { return false; }
static inline void set_irq_remapping_broken(void) { }
static inline int irq_remapping_prepare(void) { return -ENODEV; }
static inline int irq_remapping_enable(void) { return -ENODEV; }
--
1.8.3.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-08-24 7:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-24 7:02 [PATCH linux-next] x86:irq_remapping: fix boolreturn.cocci warnings CGEL
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.