Skip to contentSkip to conversation

msm_sdcc.c: missing brackets in msmsdcc_resume()

PATCH In review Roel Kluin 2 participants 2 messages Jan 17, 2010 – Jan 20, 2010 MMC, SD and SDIO

lore
Share & tools
lore

Roel Kluin

author
#0 lore raw

PATCH 1/1 msm_sdcc.c: missing brackets in msmsdcc_resume()

Since the curly brackets were missing the test and enable_irq(), if true, occurred twice.

---
 drivers/mmc/host/msm_sdcc.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
drivers/mmc/host/msm_sdcc.c +1 -3
index b31946e..4c068e5 100644
@@ -1250,9 +1250,7 @@ msmsdcc_resume(struct platform_device *dev)
 
 		if (mmc->card && mmc->card->type != MMC_TYPE_SDIO)
 			mmc_resume_host(mmc);
-			if (host->stat_irq)
-				enable_irq(host->stat_irq);
-		else if (host->stat_irq)
+		if (host->stat_irq)
 			enable_irq(host->stat_irq);
 	}
 	return 0;