[PATCH] x86/mcheck/AMD: fix boolreturn.cocci warnings

From: kbuild test robot
Date: Fri Jan 15 2016 - 20:02:39 EST


arch/x86/kernel/cpu/mcheck/mce_amd.c:93:9-10: WARNING: return of 0/1 in function 'is_shared_bank' 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

CC: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@xxxxxxx>
Signed-off-by: Fengguang Wu <fengguang.wu@xxxxxxxxx>
---

mce_amd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- a/arch/x86/kernel/cpu/mcheck/mce_amd.c
+++ b/arch/x86/kernel/cpu/mcheck/mce_amd.c
@@ -90,7 +90,7 @@ static inline bool is_shared_bank(int ba
* control over the respective MCA bank
*/
if (mce_flags.smca)
- return 0;
+ return false;

/* Bank 4 is for northbridge reporting and is thus shared */
return (bank == 4);