Explorar o código

msm_sdcc.c: missing brackets in msmsdcc_resume()

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

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Roel Kluin %!s(int64=15) %!d(string=hai) anos
pai
achega
5b8a2fb34f
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      drivers/mmc/host/msm_sdcc.c

+ 1 - 3
drivers/mmc/host/msm_sdcc.c

@@ -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;