[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1359304802-28240-2-git-send-email-emilgoode@gmail.com>
Date: Sun, 27 Jan 2013 17:40:01 +0100
From: Emil Goode <emilgoode@...il.com>
To: mtosatti@...hat.com, gleb@...hat.com, tglx@...utronix.de,
mingo@...hat.com, hpa@...or.com, avi@...hat.com, mst@...hat.com,
perex@...ex.cz, tiwai@...e.de, crimsun@...ntu.com,
wfp5p@...ginia.edu, peter.senna@...il.com
Cc: x86@...nel.org, kvm@...r.kernel.org, alsa-devel@...a-project.org,
linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org,
Emil Goode <emilgoode@...il.com>
Subject: [PATCH 2/3] x86: KVM: Simplify function kvm_detect
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@...il.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists