* [PATCH] kvm: remove pointless conditional before kfree()
@ 2009-03-31 8:47 Wei Yongjun
2009-03-31 8:52 ` Avi Kivity
0 siblings, 1 reply; 2+ messages in thread
From: Wei Yongjun @ 2009-03-31 8:47 UTC (permalink / raw)
To: Avi Kivity, kvm; +Cc: Wei Yongjun
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(-)
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;
}
--
1.5.3.8
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] kvm: remove pointless conditional before kfree()
2009-03-31 8:47 [PATCH] kvm: remove pointless conditional before kfree() Wei Yongjun
@ 2009-03-31 8:52 ` Avi Kivity
0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2009-03-31 8:52 UTC (permalink / raw)
To: Wei Yongjun; +Cc: kvm
Wei Yongjun wrote:
> Remove pointless conditional before kfree().
>
>
Applied, thanks.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-03-31 8:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-31 8:47 [PATCH] kvm: remove pointless conditional before kfree() Wei Yongjun
2009-03-31 8:52 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).