aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWei Yongjun <yjwei@cn.fujitsu.com>2009-03-31 16:47:44 +0800
committerAvi Kivity <avi@redhat.com>2009-06-10 11:48:35 +0300
commit7a6ce84c74a3064f6b6dda9e2d55c509cd4e78e4 (patch)
tree29f06575c80f84dbd7be617ddbcfb41df11c8f4b
parent9645bb56b31a1b70ab9e470387b5264cafc04aa9 (diff)
KVM: remove pointless conditional before kfree() in lapic initialization
Remove pointless conditional before kfree(). Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com> Signed-off-by: Avi Kivity <avi@redhat.com>
-rw-r--r--arch/x86/kvm/x86.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 007fadd6252..7fe83fe145f 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -1592,8 +1592,7 @@ long kvm_arch_vcpu_ioctl(struct file *filp,
r = -EINVAL;
}
out:
- if (lapic)
- kfree(lapic);
+ kfree(lapic);
return r;
}