mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
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>
This commit is contained in:
parent
9645bb56b3
commit
7a6ce84c74
1 changed files with 1 additions and 2 deletions
|
@ -1592,8 +1592,7 @@ long kvm_arch_vcpu_ioctl(struct file *filp,
|
|||
r = -EINVAL;
|
||||
}
|
||||
out:
|
||||
if (lapic)
|
||||
kfree(lapic);
|
||||
kfree(lapic);
|
||||
return r;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue