msm_sdcc.c: missing brackets in msmsdcc_resume()
authorRoel Kluin <roel.kluin@gmail.com>
Sun, 17 Jan 2010 19:25:36 +0000 (20:25 +0100)
committerDaniel Walker <dwalker@codeaurora.org>
Wed, 20 Jan 2010 20:29:56 +0000 (12:29 -0800)
Since the curly brackets were missing the test and enable_irq(),
if true, occurred twice.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
drivers/mmc/host/msm_sdcc.c

index b31946e0b4ca7ee72224f7e1f880384279d83914..4c068e5fe6b2502ec45df9c9edd60a462b5fc0e7 100644 (file)
@@ -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;