[PATCH 2/3] x86: KVM: Simplify function kvm_detect
From: Emil Goode
Date: Sun Jan 27 2013 - 11:38:15 EST
The first patch in this series changed the kvm_para_available
function to return bool. We can now simplify the kvm_detect function
by directly returning the return value of kvm_para_available.
Signed-off-by: Emil Goode <emilgoode@xxxxxxxxx>
---
arch/x86/kernel/kvm.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/arch/x86/kernel/kvm.c b/arch/x86/kernel/kvm.c
index 2b44ea5..3644908 100644
--- a/arch/x86/kernel/kvm.c
+++ b/arch/x86/kernel/kvm.c
@@ -497,9 +497,7 @@ void __init kvm_guest_init(void)
static bool __init kvm_detect(void)
{
- if (!kvm_para_available())
- return false;
- return true;
+ return kvm_para_available();
}
const struct hypervisor_x86 x86_hyper_kvm __refconst = {
--
1.7.10.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/