Julia Lawall 1e1f421a81 drivers/ata: Move a dereference below a NULL test
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: Jeff Garzik <jgarzik@redhat.com>
2009-07-14 22:42:51 -04:00
..
2009-06-05 17:10:54 -04:00
2009-03-24 22:45:05 -04:00
2009-06-05 14:40:52 -04:00
2009-03-28 20:29:51 +00:00
2009-06-08 09:12:28 -07:00
2009-03-24 22:48:26 -04:00
2009-06-23 01:54:27 -04:00
2008-01-23 05:24:15 -05:00
2009-06-10 07:50:17 -04:00
2007-07-02 10:17:42 -04:00