summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2023-06-22 13:53:27 +0300
committerUlf Hansson <ulf.hansson@linaro.org>2023-08-09 14:21:47 +0300
commite9ffb042c57705ea1b40276ab180d63fb6b52881 (patch)
tree5a42772cd4ba260f8da87b5ad01fc35a4ab09c9f
parent52a93d39b17dc7eb98b6aa3edb93943248e03b2f (diff)
downloadlinux-e9ffb042c57705ea1b40276ab180d63fb6b52881.tar.xz
mmc: meson-gx: Drop redundant WARN_ON() in the irq handler
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> Acked-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Link: https://lore.kernel.org/r/20230622105327.77296-1-ulf.hansson@linaro.org
-rw-r--r--drivers/mmc/host/meson-gx-mmc.c3
1 files changed, 0 insertions, 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);