Julia Lawall 76c317d6e5 HID: Move dereferences below a NULL test
If the NULL test is necessary, then the dereferences 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,E1;
identifier i,fld;
statement S;
@@

- T i = E->fld;
+ T i;
  ... when != E=E1
      when != i
  if (E == NULL||...) S
+ i = E->fld;
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2009-07-20 00:03:35 +02:00
..
2009-06-22 11:01:06 +02:00
2009-03-30 15:12:54 +02:00
2009-03-30 15:12:54 +02:00
2009-03-30 15:12:54 +02:00
2009-03-30 15:12:54 +02:00
2009-03-30 15:12:54 +02:00
2009-03-30 15:12:54 +02:00
2009-03-30 15:12:54 +02:00
2008-10-14 23:50:56 +02:00
2009-03-30 15:12:54 +02:00
2009-03-30 15:12:54 +02:00
2008-10-14 23:51:01 +02:00
2008-10-14 23:50:56 +02:00
2009-03-30 15:12:54 +02:00
2009-03-30 15:12:54 +02:00
2009-03-30 15:12:54 +02:00
2009-03-30 15:12:54 +02:00
2009-03-30 15:12:54 +02:00
2009-03-30 15:12:54 +02:00
2009-03-30 15:12:54 +02:00
2009-03-30 15:12:54 +02:00