aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/x86.c
diff options
context:
space:
mode:
authorWei Yongjun <yjwei@cn.fujitsu.com>2009-03-31 04:47:44 -0400
committerAvi Kivity <avi@redhat.com>2009-06-10 04:48:35 -0400
commit7a6ce84c74a3064f6b6dda9e2d55c509cd4e78e4 (patch)
tree29f06575c80f84dbd7be617ddbcfb41df11c8f4b /arch/x86/kvm/x86.c
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>
Diffstat (limited to 'arch/x86/kvm/x86.c')
-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 007fadd62529..7fe83fe145f9 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,
1592 r = -EINVAL; 1592 r = -EINVAL;
1593 } 1593 }
1594out: 1594out:
1595 if (lapic) 1595 kfree(lapic);
1596 kfree(lapic);
1597 return r; 1596 return r;
1598} 1597}
1599 1598