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-10-21 20:57:23 +02:00
2008-10-21 20:57:23 +02:00
2008-12-02 20:40:04 +01:00
2008-12-02 20:40:03 +01:00
2008-10-21 20:57:23 +02:00
2008-10-21 20:57:23 +02:00
2008-10-21 20:57:23 +02:00
2008-10-21 20:57:23 +02:00
2008-10-21 20:57:23 +02:00
2008-10-21 20:57:23 +02:00
2008-12-22 23:05:06 +01:00
2008-10-21 20:57:23 +02:00
2008-10-21 20:57:23 +02:00
2008-10-21 20:57:23 +02:00
2008-10-21 20:57:23 +02:00
2008-10-21 20:57:23 +02:00
2008-10-21 20:57:23 +02:00
2008-11-02 21:40:08 +01:00
2008-10-21 20:57:23 +02:00
2008-11-30 10:03:36 -08:00
2008-10-21 20:57:23 +02:00
2008-10-21 20:57:23 +02:00
2008-10-21 20:57:23 +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-21 20:57:23 +02:00
2008-12-08 17:42:35 +01:00
2008-12-02 20:40:04 +01:00
2008-11-02 21:40:08 +01:00
2008-12-02 20:40:03 +01:00
2008-11-02 21:40:08 +01:00
2008-11-02 21:40:08 +01:00
2008-10-21 20:57:23 +02:00
2008-11-02 21:40:08 +01:00
2008-12-08 17:52:05 +01:00
2008-10-21 20:57:23 +02:00
2008-10-23 23:24:20 +02:00
2008-10-21 20:57:23 +02:00
2008-10-21 20:57:23 +02:00
2008-10-21 20:57:23 +02:00
2008-10-21 20:57:23 +02:00
2008-10-21 20:57:23 +02:00
2008-11-02 21:40:08 +01:00
2008-12-08 17:52:05 +01:00
2008-10-21 20:57:23 +02:00
2008-10-21 20:57:23 +02:00
2008-10-21 20:57:23 +02:00
2008-10-26 09:35:05 -07:00
2008-10-21 20:57:23 +02:00
2008-12-22 23:05:06 +01:00
2008-11-02 21:40:08 +01:00
2008-10-21 20:57:23 +02:00
2008-12-09 10:08:48 -08:00
2008-11-02 21:40:08 +01:00
2008-10-21 20:57:23 +02:00
2008-10-21 20:57:23 +02:00
2008-10-21 20:57:23 +02:00
2008-10-21 20:57:23 +02:00
2008-10-21 20:57:23 +02:00
2008-10-21 20:57:23 +02:00
2008-11-02 21:40:10 +01:00
2008-10-23 23:22:07 +02:00
2008-10-21 20:57:23 +02:00
2008-10-21 20:57:23 +02:00