From: Michael Ellerman Date: Wed, 27 Jul 2016 03:39:42 +0000 (+1000) Subject: powerpc/kernel: Convert mmu_has_feature() to returning bool X-Git-Tag: v4.14-rc1~2706^2~40 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a81dc9d9957354ee2ebc2e387cbc10cf457b9948;p=platform%2Fkernel%2Flinux-rpi.git powerpc/kernel: Convert mmu_has_feature() to returning bool The intention is that the result is only used as a boolean, so enforce that by changing the return type to bool. Signed-off-by: Michael Ellerman --- diff --git a/arch/powerpc/include/asm/mmu.h b/arch/powerpc/include/asm/mmu.h index 599781e..eb942a4 100644 --- a/arch/powerpc/include/asm/mmu.h +++ b/arch/powerpc/include/asm/mmu.h @@ -135,9 +135,9 @@ enum { 0, }; -static inline int mmu_has_feature(unsigned long feature) +static inline bool mmu_has_feature(unsigned long feature) { - return (MMU_FTRS_POSSIBLE & cur_cpu_spec->mmu_features & feature); + return !!(MMU_FTRS_POSSIBLE & cur_cpu_spec->mmu_features & feature); } static inline void mmu_clear_feature(unsigned long feature)