Commit dc0f585e authored by Shawn Lin's avatar Shawn Lin Committed by Ulf Hansson

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: default avatarShawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 5fc3d80e
...@@ -640,8 +640,6 @@ static void __vub300_irqpoll_response(struct vub300_mmc_host *vub300) ...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment