linux/drivers/mmc
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
..
card mmc_block: print better error messages 2008-12-31 18:18:13 +01:00
core mmc: Add mmc_vddrange_to_ocrmask() helper function 2008-12-31 18:18:13 +01:00
host drivers/mmc: Move a dereference below a NULL test 2008-12-31 18:18:14 +01:00
Kconfig mmc: explicitly mention SDIO support in Kconfig 2008-10-12 11:04:36 +02:00
Makefile mmc: Move core functions to subdir 2007-05-01 13:04:18 +02:00