linux/drivers/mmc/host
Julia Lawall a0d045cac9 drivers/mmc: Move a dereference below a NULL test
In each case, if the NULL test is necessary, then the dereference should be
moved below the NULL test.

The semantic patch that makes this change is as follows:
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@@
type T;
expression E;
identifier i,fld;
statement S;
@@

- T i = E->fld;
+ T i;
  ... when != E
      when != i
  if (E == NULL) S
+ i = E->fld;
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
2008-12-31 18:18:14 +01:00
..
at91_mci.c mmc: at91_mci: don't use coherent dma buffers 2008-09-02 19:21:38 -07:00
atmel-mci-regs.h atmel-mci: Platform code for supporting multiple mmc slots 2008-10-05 20:39:21 +02:00
atmel-mci.c atmel-mci: Initialize BLKR before sending data transfer command 2008-10-06 14:26:24 -07:00
au1xmmc.c au1xmmc: raise segment size limit. 2008-08-01 19:04:26 +02:00
imxmmc.c imxmmc: use readl/writel 2008-12-16 14:58:17 +01:00
imxmmc.h imxmmc: use readl/writel 2008-12-16 14:58:17 +01:00
Kconfig Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/hskinnemoen/atmel-mci-2.6.28 2008-10-12 11:08:46 +02:00
Makefile mfd: TMIO MMC driver 2008-08-10 23:30:16 +02:00
mmc_spi.c mmc: struct device - replace bus_id with dev_name(), dev_set_name() 2008-11-08 21:37:46 +01:00
mmci.c [ARM] amba drivers: don't pass a consumer clock name for devices with unique clocks 2008-11-30 17:38:14 +00:00
mmci.h mmc: fix sg->page fallout 2007-10-23 20:37:24 +02:00
omap.c omap mmc: Add low-level initialization for hsmmc controller 2008-12-10 17:37:17 -08:00
pxamci.c [ARM] Hide ISA DMA API when ISA_DMA_API is unset 2008-11-29 18:42:40 +00:00
pxamci.h [ARM] pxa: mmc: add 1st host controller support for pxa3xx 2008-01-26 15:07:53 +00:00
ricoh_mmc.c ricoh_mmc: Handle newer models of Ricoh controllers 2008-12-31 18:18:13 +01:00
s3cmci.c [ARM] S3C24XX: Move mci.h to arch/arm/plat-s3c24xx/include/plat 2008-10-30 10:17:16 +00:00
s3cmci.h s3cmci: Support transfers which are not multiple of 32 bits. 2008-10-15 18:05:14 +02:00
sdhci-pci.c pci: use pci_ioremap_bar() in drivers/mmc 2008-12-31 18:18:11 +01:00
sdhci.c sdhci: handle built-in sdhci with modular leds class 2008-12-31 18:18:13 +01:00
sdhci.h sdhci: activate led support also when module 2008-12-31 18:18:11 +01:00
sdricoh_cs.c mmc: balanc pci_iomap with pci_iounmap 2008-12-31 18:18:13 +01:00
tifm_sd.c mmc: struct device - replace bus_id with dev_name(), dev_set_name() 2008-11-08 21:37:46 +01:00
tmio_mmc.c drivers/mmc: Move a dereference below a NULL test 2008-12-31 18:18:14 +01:00
tmio_mmc.h tmio_mmc: fix compilation with debug enabled 2008-09-20 12:11:13 +02:00
wbsd.c mmc: remove multiwrite capability 2008-07-15 14:14:49 +02:00
wbsd.h mmc: update header file paths 2007-07-26 01:53:31 +02:00