From: Christian Borntraeger Date: Wed, 3 Sep 2014 19:17:03 +0000 (+0200) Subject: KVM: s390: get rid of constant condition in ipte_unlock_simple X-Git-Tag: v4.14-rc1~6747^2~39^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6b331952f1bc2df61c98954e25578629c439e417;p=platform%2Fkernel%2Flinux-rpi.git 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: Christian Borntraeger Acked-by: Heiko Carstens --- diff --git a/arch/s390/kvm/gaccess.c b/arch/s390/kvm/gaccess.c index 4653ac6..0f961a1 100644 --- a/arch/s390/kvm/gaccess.c +++ b/arch/s390/kvm/gaccess.c @@ -254,8 +254,7 @@ 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); + wake_up(&vcpu->kvm->arch.ipte_wq); out: mutex_unlock(&ipte_mutex); }