Julia Lawall 7bfa122c19 arch/sh/mm: 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: Paul Mundt <lethal@linux-sh.org>
2009-01-21 17:41:14 +09:00
..
2008-08-04 16:33:47 +09:00
2008-10-31 16:29:20 +09:00
2008-09-08 10:35:06 +09:00
2008-05-08 19:51:37 +09:00
2008-12-22 18:44:48 +09:00
2008-12-22 18:44:04 +09:00
2008-07-29 08:09:44 +09:00
2008-07-24 10:47:18 -07:00
2008-12-22 18:43:48 +09:00
2008-09-08 10:35:04 +09:00
2008-07-28 18:10:35 +09:00
2008-09-08 10:35:04 +09:00