diff --git a/include/linux/kvm_para.h b/include/linux/kvm_para.h index 00a97bb905db03a007450351441c823b8fa19112..35e568f04b1e7b94a6322c05d48583b43af8618c 100644 --- a/include/linux/kvm_para.h +++ b/include/linux/kvm_para.h @@ -4,10 +4,8 @@ #include -static inline int kvm_para_has_feature(unsigned int feature) +static inline bool kvm_para_has_feature(unsigned int feature) { - if (kvm_arch_para_features() & (1UL << feature)) - return 1; - return 0; + return !!(kvm_arch_para_features() & (1UL << feature)); } #endif /* __LINUX_KVM_PARA_H */