mirror of
https://github.com/torvalds/linux.git
synced 2024-12-04 10:01:41 +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,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 New Issue
Block a user