mirror of
https://github.com/torvalds/linux.git
synced 2024-12-04 18:13:04 +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
@ -1592,7 +1592,6 @@ long kvm_arch_vcpu_ioctl(struct file *filp,
|
||||
r = -EINVAL;
|
||||
}
|
||||
out:
|
||||
if (lapic)
|
||||
kfree(lapic);
|
||||
return r;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user