aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorYi Wang <wang.yi59@zte.com.cn>2019-07-15 10:47:09 +0800
committerThomas Gleixner <tglx@linutronix.de>2019-07-16 23:13:49 +0200
commitf709f81483d652b4ae5bbda2204b95593ce07c8f (patch)
treee2842ca5af874e7424d80ee7ba028f6749fac390 /arch
parentec6335586953b0df32f83ef696002063090c7aef (diff)
downloadrenesas-f709f81483d652b4ae5bbda2204b95593ce07c8f.tar.gz
x86/e820: Use proper booleans instead of 0/1
This fixes the following coccinelle warning: ./arch/x86/kernel/e820.c:89:9-10: WARNING: return of 0/1 in function '_e820__mapped_any' with return type bool Return type bool instead of 0/1. Signed-off-by: Yi Wang <wang.yi59@zte.com.cn> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lkml.kernel.org/r/1563158829-44373-1-git-send-email-wang.yi59@zte.com.cn
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kernel/e820.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/e820.c b/arch/x86/kernel/e820.c
index e69408bf664b68..7da2bcd2b8eb01 100644
--- a/arch/x86/kernel/e820.c
+++ b/arch/x86/kernel/e820.c
@@ -86,9 +86,9 @@ static bool _e820__mapped_any(struct e820_table *table,
continue;
if (entry->addr >= end || entry->addr + entry->size <= start)
continue;
- return 1;
+ return true;
}
- return 0;
+ return false;
}
bool e820__mapped_raw_any(u64 start, u64 end, enum e820_type type)