Julia Lawall 3423d80af6 drivers/mmc: Move dereference after NULL test
If the NULL test on mrq is needed, then the derefernce should be after the
NULL test.

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

// <smpl>
@match exists@
expression x, E;
identifier fld;
@@

* x->fld
  ... when != \(x = E\|&x\)
* x == NULL
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Cc: <linux-mmc@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-12-15 08:53:34 -08:00
..
2009-12-11 11:55:21 -08:00
2009-12-15 08:53:33 -08:00
2009-12-15 08:53:25 -08:00
2009-12-15 08:53:34 -08:00
2009-12-11 11:55:21 -08:00
2009-12-15 08:53:25 -08:00
2009-12-02 01:13:11 -08:00
2009-12-14 00:26:26 +01:00
2009-12-15 08:53:25 -08:00
2009-12-15 08:53:25 -08:00
2009-12-09 17:14:38 +11:00
2009-12-15 08:53:25 -08:00
2009-12-15 08:53:25 -08:00
2009-12-15 08:53:25 -08:00
2009-12-15 08:53:25 -08:00
2009-12-15 08:53:25 -08:00