Files
ubports_kernel_google_msm/drivers/ide
Julia Lawall 9ecab6e5bf drivers/ide/{cs5530.c,sc1200.c}: Move a dereference below a NULL test
In each case, 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>
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
2008-12-22 23:05:06 +01:00
..
2008-12-02 20:40:04 +01:00
2008-11-02 21:40:08 +01:00
2008-11-30 10:03:36 -08:00
2008-10-13 21:39:36 +02:00
2008-11-02 21:40:07 +01:00
2008-11-09 21:35:36 +01:00
2008-11-02 21:40:08 +01:00
2008-11-02 21:40:10 +01:00
2008-10-13 21:39:36 +02:00
2008-07-23 19:55:57 +02:00
2008-11-02 21:40:08 +01:00
2008-10-21 07:48:27 -04:00
2008-11-02 21:40:08 +01:00
2008-11-02 21:40:08 +01:00
2008-11-02 21:40:08 +01:00
2008-10-26 09:35:05 -07:00
2008-11-02 21:40:08 +01:00
2008-11-02 21:40:08 +01:00
2008-10-23 23:22:07 +02:00