[GIT,PULL,02/18] KVM: s390: drop obsolete else path
diff mbox series

Message ID 1550835749-26436-3-git-send-email-frankja@linux.ibm.com
State New
Headers show
  • [GIT,PULL,01/18] KVM: s390: clarify kvm related kernel message
Related show

Commit Message

Janosch Frank Feb. 22, 2019, 11:42 a.m. UTC
From: Michael Mueller <mimu@linux.ibm.com>

The explicit else path specified in set_intercept_indicators_io
is not required as the function returns in case the first branch
is taken anyway.

Signed-off-by: Michael Mueller <mimu@linux.ibm.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Halil Pasic <pasic@linux.ibm.com>
Message-Id: <20190131085247.13826-2-mimu@linux.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
 arch/s390/kvm/interrupt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff mbox series

diff --git a/arch/s390/kvm/interrupt.c b/arch/s390/kvm/interrupt.c
index fcb55b0..19d5565 100644
--- a/arch/s390/kvm/interrupt.c
+++ b/arch/s390/kvm/interrupt.c
@@ -345,7 +345,7 @@  static void set_intercept_indicators_io(struct kvm_vcpu *vcpu)
 	if (!(pending_irqs_no_gisa(vcpu) & IRQ_PEND_IO_MASK))
-	else if (psw_ioint_disabled(vcpu))
+	if (psw_ioint_disabled(vcpu))
 		kvm_s390_set_cpuflags(vcpu, CPUSTAT_IO_INT);
 		vcpu->arch.sie_block->lctl |= LCTL_CR6;