Julia Lawall 21ead03bdd V4L/DVB (13949): 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: Mauro Carvalho Chehab <mchehab@redhat.com>
2010-02-26 15:10:33 -03:00
..
2010-02-23 00:39:00 -05:00
2010-02-10 12:07:28 -07:00
2010-01-29 21:03:09 +01:00
2010-02-11 13:59:42 -08:00
2010-02-02 18:11:21 -08:00
2010-02-03 16:55:20 -05:00
2010-02-16 15:11:10 -08:00
2010-02-22 19:50:34 -08:00
2010-01-13 10:01:35 +00:00