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

Commit 6b331952 authored by Christian Borntraeger's avatar Christian Borntraeger
Browse files

KVM: s390: get rid of constant condition in ipte_unlock_simple



Due to the earlier check we know that ipte_lock_count must be 0.
No need to add a useless if. Let's make clear that we are going
to always wakeup when we execute that code.

Signed-off-by: default avatarChristian Borntraeger <borntraeger@de.ibm.com>
Acked-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
parent f346026e
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -254,7 +254,6 @@ static void ipte_unlock_simple(struct kvm_vcpu *vcpu)
		new = old = ACCESS_ONCE(*ic);
		new.k = 0;
	} while (cmpxchg(&ic->val, old.val, new.val) != old.val);
	if (!ipte_lock_count)
	wake_up(&vcpu->kvm->arch.ipte_wq);
out:
	mutex_unlock(&ipte_mutex);