From: Yaowei Bai Date: Fri, 20 May 2016 00:11:29 +0000 (-0700) Subject: mm/vmalloc.c: is_vmalloc_addr() can return bool X-Git-Tag: v4.14-rc1~3201^2~66 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bb00a789e565b96c52b2224c2280f7ac83175bec;p=platform%2Fkernel%2Flinux-rpi.git mm/vmalloc.c: is_vmalloc_addr() can return bool Make is_vmalloc_addr() return bool to improve readability due to this particular function only using either one or zero as its return value. Signed-off-by: Yaowei Bai Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/linux/mm.h b/include/linux/mm.h index 1193a54..5b37513 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -447,14 +447,14 @@ unsigned long vmalloc_to_pfn(const void *addr); * On nommu, vmalloc/vfree wrap through kmalloc/kfree directly, so there * is no special casing required. */ -static inline int is_vmalloc_addr(const void *x) +static inline bool is_vmalloc_addr(const void *x) { #ifdef CONFIG_MMU unsigned long addr = (unsigned long)x; return addr >= VMALLOC_START && addr < VMALLOC_END; #else - return 0; + return false; #endif } #ifdef CONFIG_MMU