android_kernel_xiaomi_sm8350/drivers/mmc/host
Julia Lawall 2198a64a74 drivers/mmc: correct error-handling code
sdhci_alloc_host returns an ERR_PTR value in an error case instead of NULL.

A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@match exists@
expression x, E;
statement S1, S2;
@@

x = sdhci_alloc_host(...)
... when != x = E
(
*  if (x == NULL || ...) S1 else S2
|
*  if (x == NULL && ...) S1 else S2
)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Acked-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Cc: Matt Fleming <matt@console-pimps.org>
Cc: Ian Molton <ian@mnementh.co.uk>
Cc: "Roberto A. Foglietta" <roberto.foglietta@gmail.com>
Cc: Philip Langdale <philipl@overt.org>
Cc: Pierre Ossman <pierre@ossman.eu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-08-07 10:39:56 -07:00
..
at91_mci.c
atmel-mci-regs.h atmel-mci: add MCI2 register definitions 2009-06-13 22:43:01 +02:00
atmel-mci.c atmel-mci: Add support for inverted detect pin 2009-04-08 20:47:48 +02:00
au1xmmc.c
cb710-mmc.c cb710: use SG_MITER_TO_SG/SG_MITER_FROM_SG 2009-07-31 12:28:46 +02:00
cb710-mmc.h mmc: Driver for CB710/720 memory card reader (MMC part) 2009-06-13 22:42:58 +02:00
imxmmc.c imxmmc: Remove unnecessary semicolons 2009-07-31 12:28:46 +02:00
imxmmc.h
Kconfig mmc: Add new via-sdmmc host controller driver 2009-06-21 21:00:59 +02:00
Makefile mmc: Add new via-sdmmc host controller driver 2009-06-21 21:00:59 +02:00
mmc_spi.c spi: add spi_master flag word 2009-06-30 18:56:00 -07:00
mmci.c [ARM] 5544/1: Trust PrimeCell resource sizes 2009-06-11 15:36:56 +01:00
mmci.h mmci: Add support for ST Micro derivate 2009-02-02 20:57:06 +01:00
mvsdio.c mvsdio: fix handling of partial word at the end of PIO transfer 2009-07-20 16:46:34 -07:00
mvsdio.h mmc: SDIO driver for Marvell SoCs 2009-03-24 21:30:03 +01:00
mxcmmc.c mxcmmc: remove frequency workaround 2009-06-13 22:42:59 +02:00
of_mmc_spi.c mmc: struct device - replace bus_id with dev_name(), dev_set_name() 2009-03-24 16:38:21 -07:00
omap_hsmmc.c Merge branch 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm 2009-06-14 13:42:43 -07:00
omap.c mmc/omap: make mmci-omap using platform_driver_probe 2009-06-13 22:42:57 +02:00
pxamci.c pxamci: correct DMA flow control 2009-07-03 14:13:28 +08:00
pxamci.h
ricoh_mmc.c ricoh_mmc: Use suspend_late/resume_early 2009-02-02 20:57:06 +01:00
s3cmci.c s3cmci: fix dma configuration call 2009-06-21 21:00:59 +02:00
s3cmci.h
sdhci-of.c drivers/mmc: correct error-handling code 2009-08-07 10:39:56 -07:00
sdhci-pci.c sdhci: Specific quirk vor VIA SDHCI controller in VX855ES 2009-06-21 21:00:59 +02:00
sdhci-pltfm.c sdhci: platform driver for SDHCI 2009-06-13 22:42:59 +02:00
sdhci-s3c.c sdhci: Add SDHCI_QUIRK_NO_MULTIBLOCK quirk 2009-06-21 21:00:58 +02:00
sdhci.c sdhci: use SG_MITER_TO_SG/SG_MITER_FROM_SG 2009-07-31 12:28:45 +02:00
sdhci.h sdhci: get rid of "frequency too high" flood when using eSDHC 2009-07-29 19:10:36 -07:00
sdricoh_cs.c
tifm_sd.c
tmio_mmc.c tmio_mmc: allow compilation for ASIC3 2009-06-13 22:43:01 +02:00
tmio_mmc.h tmio_mmc: add bus_shift support 2009-06-13 22:43:00 +02:00
via-sdmmc.c mmc: Add new via-sdmmc host controller driver 2009-06-21 21:00:59 +02:00
wbsd.c New mail address for Pierre Ossman 2009-04-08 20:14:54 +02:00
wbsd.h