提交 a81dc9d9 编写于 作者: M Michael Ellerman

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: NMichael Ellerman <mpe@ellerman.id.au>
上级 5a25b6f5
...@@ -135,9 +135,9 @@ enum { ...@@ -135,9 +135,9 @@ enum {
0, 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) static inline void mmu_clear_feature(unsigned long feature)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册