Skip to content

Commit

Permalink
msm_sdcc.c: missing brackets in msmsdcc_resume()
Browse files Browse the repository at this point in the history
Since the curly brackets were missing the test and enable_irq(),
if true, occurred twice.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
  • Loading branch information
Roel Kluin authored and Daniel Walker committed Jan 20, 2010
1 parent 6b7b284 commit 5b8a2fb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/mmc/host/msm_sdcc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5b8a2fb

Please sign in to comment.