1
0
Files
linux/drivers
Julia Lawall 98ccdc56a0 Staging: comedi: 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>
@disable is_null@
identifier f;
expression E;
identifier fld;
statement S;
@@

+ if (E == NULL) S
  f(...,E->fld,...);
- if (E == NULL) S

@@
identifier f;
expression E;
identifier fld;
statement S;
@@

+ if (!E) S
  f(...,E->fld,...);
- if (!E) S
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-04-03 14:53:41 -07:00
..
2009-04-01 08:59:22 -07:00
2009-03-30 21:55:25 +10:30
2009-03-31 09:56:28 +01:00
2009-04-01 08:59:23 -07:00
2009-04-02 00:40:41 +00:00
2009-04-02 19:05:04 -07:00