Messages in this thread Patch in this message | | | From | Emil Goode <> | Subject | [PATCH 2/3] x86: KVM: Simplify function kvm_detect | Date | Sun, 27 Jan 2013 17:40:01 +0100 |
| |
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@gmail.com> --- 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
| |