Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1592,7 +1592,6 @@ long kvm_arch_vcpu_ioctl(struct file *filp,
		r = -EINVAL;
	}
out:
	if (lapic)
	kfree(lapic);
	return r;
}