diff mbox

kvm: remove pointless conditional before kfree()

Message ID 49D1D8B0.2090100@cn.fujitsu.com (mailing list archive)
State Accepted
Headers show

Commit Message

Wei Yongjun March 31, 2009, 8:47 a.m. UTC
Remove pointless conditional before kfree().

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
---
 arch/x86/kvm/x86.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

Comments

Avi Kivity March 31, 2009, 8:52 a.m. UTC | #1
Wei Yongjun wrote:
> Remove pointless conditional before kfree().
>
>   

Applied, thanks.
diff mbox

Patch

diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 8ca100a..8fb4c92 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -1580,8 +1580,7 @@  long kvm_arch_vcpu_ioctl(struct file *filp,
 		r = -EINVAL;
 	}
 out:
-	if (lapic)
-		kfree(lapic);
+	kfree(lapic);
 	return r;
 }