From: Roel Kluin Date: Sun, 17 Jan 2010 19:25:36 +0000 (+0100) Subject: msm_sdcc.c: missing brackets in msmsdcc_resume() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5b8a2fb34f5670b1f07483bfa40de9ce539dbdb2;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git 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 --- diff --git a/drivers/mmc/host/msm_sdcc.c b/drivers/mmc/host/msm_sdcc.c index b31946e0b4ca..4c068e5fe6b2 100644 --- a/drivers/mmc/host/msm_sdcc.c +++ b/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;