提交 dc0f585e 编写于 作者: S Shawn Lin 提交者: 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: NShawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册