* [PATCH] mmc: meson-gx: Drop redundant WARN_ON() in the irq handler
@ 2023-06-22 10:53 Ulf Hansson
2023-06-25 20:47 ` Martin Blumenstingl
0 siblings, 1 reply; 2+ messages in thread
From: Ulf Hansson @ 2023-06-22 10:53 UTC (permalink / raw)
To: linux-mmc, Ulf Hansson
Cc: Martin Blumenstingl, linux-amlogic, linux-arm-kernel
The host pointer is already being dereferenced earlier, so let's just drop
the redundant WARN_ON.
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
---
drivers/mmc/host/meson-gx-mmc.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/mmc/host/meson-gx-mmc.c b/drivers/mmc/host/meson-gx-mmc.c
index ee9a25b900ae..d652374f37b2 100644
--- a/drivers/mmc/host/meson-gx-mmc.c
+++ b/drivers/mmc/host/meson-gx-mmc.c
@@ -948,9 +948,6 @@ static irqreturn_t meson_mmc_irq(int irq, void *dev_id)
return IRQ_NONE;
}
- if (WARN_ON(!host))
- return IRQ_NONE;
-
/* ack all raised interrupts */
writel(status, host->regs + SD_EMMC_STATUS);
--
2.34.1
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-06-25 20:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-22 10:53 [PATCH] mmc: meson-gx: Drop redundant WARN_ON() in the irq handler Ulf Hansson
2023-06-25 20:47 ` Martin Blumenstingl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®