Commit 7a6ce84c authored by Wei Yongjun's avatar Wei Yongjun Committed by Avi Kivity

KVM: remove pointless conditional before kfree() in lapic initialization

Remove pointless conditional before kfree().
Signed-off-by: default avatarWei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent 9645bb56
......@@ -1592,8 +1592,7 @@ long kvm_arch_vcpu_ioctl(struct file *filp,
r = -EINVAL;
}
out:
if (lapic)
kfree(lapic);
kfree(lapic);
return r;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment