linux/drivers/mmc/host
Julia Lawall 7c5367f205 drivers/mmc/host/imxmmc.c: adjust confusing if indentation
Move the second if (reg & ...) test into the branch indicated by its
indentation.  The test was previously always executed after the if
containing that branch, but it was always false unless the if branch was
taken.

The semantic match that finds this problem is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@r disable braces4@
position p1,p2;
statement S1,S2;
@@

(
if (...) { ... }
|
if (...) S1@p1 S2@p2
)

@script:python@
p1 << r.p1;
p2 << r.p2;
@@

if (p1[0].column == p2[0].column):
  cocci.print_main("branch",p1)
  cocci.print_secs("after",p2)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Chris Ball <cjb@laptop.org>
Cc: Pavel Pisa <ppisa@pikron.com>
Cc: <linux-mmc@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-09-09 18:57:23 -07:00
..
at91_mci.c mmc: at91_mci: add missing linux/highmem.h include 2010-09-09 18:57:23 -07:00
atmel-mci-regs.h
atmel-mci.c
au1xmmc.c
bfin_sdh.c
cb710-mmc.c
cb710-mmc.h
davinci_mmc.c
imxmmc.c drivers/mmc/host/imxmmc.c: adjust confusing if indentation 2010-09-09 18:57:23 -07:00
imxmmc.h
jz4740_mmc.c
Kconfig s5pc110: SDHCI-s3c support on s5pc110 2010-08-20 09:34:55 -07:00
Makefile Merge branch 'msm-mmc_sdcc' of git://codeaurora.org/quic/kernel/dwalker/linux-msm 2010-08-13 18:06:37 -07:00
mmc_spi.c Merge branch 'next-spi' of git://git.secretlab.ca/git/linux-2.6 2010-08-14 11:54:09 -07:00
mmci.c
mmci.h
msm_sdcc.c Merge branch 'msm-mmc_sdcc' of git://codeaurora.org/quic/kernel/dwalker/linux-msm 2010-08-13 18:06:37 -07:00
msm_sdcc.h Merge branch 'msm-core' of git://codeaurora.org/quic/kernel/dwalker/linux-msm 2010-08-12 10:07:32 -07:00
mvsdio.c
mvsdio.h
mxcmmc.c
of_mmc_spi.c
omap_hsmmc.c omap hsmmc: fix a racing case between kmmcd and omap_hsmmc_suspend 2010-09-09 18:57:23 -07:00
omap.c
pxamci.c
pxamci.h
s3cmci.c ARM: SAMSUNG: MMC: fix build error when both DMA and PIO mode selected 2010-09-09 18:57:23 -07:00
s3cmci.h
sdhci-cns3xxx.c
sdhci-of-core.c Merge branch 'next-devicetree' of git://git.secretlab.ca/git/linux-2.6 2010-08-12 09:11:31 -07:00
sdhci-of-esdhc.c
sdhci-of-hlwd.c
sdhci-of.h
sdhci-pci.c mmc: add ricoh e822 pci id 2010-08-11 08:59:05 -07:00
sdhci-pltfm.c
sdhci-pltfm.h
sdhci-s3c.c drivers/mmc/host/sdhci-s3c.c: use the correct mutex and card detect function 2010-08-20 09:34:55 -07:00
sdhci-spear.c
sdhci.c sdhci: add no hi-speed bit quirk support 2010-08-20 09:34:55 -07:00
sdhci.h sdhci: add no hi-speed bit quirk support 2010-08-20 09:34:55 -07:00
sdricoh_cs.c
sh_mmcif.c
tifm_sd.c
tmio_mmc.c mmc: fix the use of kunmap_atomic() in tmio_mmc.h 2010-09-09 18:57:23 -07:00
tmio_mmc.h mmc: fix the use of kunmap_atomic() in tmio_mmc.h 2010-09-09 18:57:23 -07:00
via-sdmmc.c
wbsd.c
wbsd.h