projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9645bb5
)
KVM: remove pointless conditional before kfree() in lapic initialization
author
Wei Yongjun
<yjwei@cn.fujitsu.com>
Tue, 31 Mar 2009 08:47:44 +0000
(16:47 +0800)
committer
Avi Kivity
<avi@redhat.com>
Wed, 10 Jun 2009 08:48:35 +0000
(11:48 +0300)
Remove pointless conditional before kfree().
Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/x86.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kvm/x86.c
b/arch/x86/kvm/x86.c
index 007fadd62529e9f578a0f5f3e7bcea2e0c13e6ab..7fe83fe145f97e2d9082e840cc1d4a0582b01943 100644
(file)
--- 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;
}