mmc: vub300: Remove bogus check of irqs_queued

It's unnecessary to check the irqs_queued value as
it always needs to queue one if irq isn't enabled.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
Shawn Lin 2017-01-11 12:14:49 +08:00 committed by Ulf Hansson
parent 5fc3d80ef4
commit dc0f585e83
1 changed files with 0 additions and 2 deletions

View File

@ -640,8 +640,6 @@ static void __vub300_irqpoll_response(struct vub300_mmc_host *vub300)
mutex_lock(&vub300->irq_mutex); mutex_lock(&vub300->irq_mutex);
if (vub300->irq_enabled) if (vub300->irq_enabled)
mmc_signal_sdio_irq(vub300->mmc); mmc_signal_sdio_irq(vub300->mmc);
else if (vub300->irqs_queued)
vub300->irqs_queued += 1;
else else
vub300->irqs_queued += 1; vub300->irqs_queued += 1;
vub300->irq_disabled = 0; vub300->irq_disabled = 0;