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

Commit 40c4f8d2 authored by Dan Carpenter's avatar Dan Carpenter Committed by Marc Zyngier
Browse files

arm64: KVM: Clean up a condition



My static checker complains that this condition looks like it should be
== instead of =.  This isn't a fast path, so we don't need to be fancy.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarMarc Zyngier <marc.zyngier@arm.com>
parent 6c41a413
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1546,7 +1546,7 @@ static void unhandled_cp_access(struct kvm_vcpu *vcpu,
				struct sys_reg_params *params)
{
	u8 hsr_ec = kvm_vcpu_trap_get_class(vcpu);
	int cp;
	int cp = -1;

	switch(hsr_ec) {
	case ESR_ELx_EC_CP15_32:
@@ -1558,7 +1558,7 @@ static void unhandled_cp_access(struct kvm_vcpu *vcpu,
		cp = 14;
		break;
	default:
		WARN_ON((cp = -1));
		WARN_ON(1);
	}

	kvm_err("Unsupported guest CP%d access at: %08lx\n",