Julia Lawall a1104016ce drivers/ata/libata: Move dereference after NULL test
In each case, if the NULL test on qc 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>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2009-11-03 14:26:12 -05:00
..
2009-10-15 00:47:13 -04:00
2009-09-22 07:17:27 -07:00
2009-10-22 16:39:34 +10:30
2009-09-24 07:21:05 -07:00
2009-09-23 07:39:43 -07:00
2009-10-15 00:47:13 -04:00
2009-10-14 12:43:54 +02:00
2009-09-23 11:35:41 -04:00
2009-10-04 22:53:41 +02:00
2009-10-04 15:05:10 -07:00
2009-09-23 10:07:49 -07:00