Skip to contentSkip to conversation

mmc: meson-gx: Drop redundant WARN_ON() in the irq handler

PATCH In review Ulf Hansson 2 participants 2 messages Jun 22, 2023 – Jun 25, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/mmc/host/meson-gx-mmc.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/mmc/host/meson-gx-mmc.c +0 -3
index ee9a25b900ae..d652374f37b2 100644
@@ -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);
 
Signature · 1 line
2.34.1