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-10 15:25:41 -07:00
2009-06-14 13:46:25 -07:00
2009-04-13 15:04:33 -07:00
2009-06-14 13:46:25 -07:00
2009-06-14 13:46:25 -07:00
2009-06-11 08:51:05 -07:00
2009-05-22 23:22:54 +02:00
2009-06-14 13:46:25 -07:00
2009-05-03 18:05:42 +09:00
2009-06-12 18:01:50 +02:00
2009-06-09 22:30:27 +09:30
2009-06-14 13:46:25 -07:00
2009-05-30 07:57:44 -07:00
2009-06-12 18:01:46 +02:00
2009-06-10 11:05:00 -04:00
2009-05-21 15:56:04 +02:00
2009-06-12 18:09:18 -07:00
2009-07-20 00:03:35 +02:00
2009-06-01 13:46:49 +02:00
2009-06-14 13:42:43 -07:00
2009-06-14 13:46:25 -07:00
2009-05-28 20:52:40 -04:00
2009-06-11 21:36:09 -04:00
2009-06-14 13:53:22 -07:00
2009-06-14 13:46:25 -07:00
2009-06-12 18:01:46 +02:00
2009-05-18 16:25:40 +01:00
2009-06-12 09:32:26 -07:00
2009-04-24 08:16:05 -07:00
2009-06-11 11:10:35 -07:00
2009-06-14 13:46:25 -07:00
2009-05-22 23:22:54 +02:00
2009-06-14 13:52:01 -07:00
2009-06-13 22:42:59 +02:00
2009-06-13 22:42:59 +02:00
2009-06-14 13:46:57 -07:00
2009-06-14 13:46:25 -07:00
2009-06-14 13:53:22 -07:00
2009-05-21 15:56:04 +02:00
2009-05-07 17:28:59 +02:00
2009-04-28 12:21:16 +02:00
2009-06-11 08:51:03 -07:00
2009-06-12 18:01:51 +02:00
2009-06-05 10:46:32 +08:00
2009-05-14 11:28:27 -04:00
2009-06-12 18:09:18 -07:00
2009-04-08 17:45:02 -07:00
2009-04-07 08:31:11 -07:00
2009-05-18 11:21:10 +01:00
2009-06-14 13:42:43 -07:00
2009-06-14 13:46:25 -07:00
2009-05-11 09:52:18 +02:00
2009-06-14 13:46:25 -07:00
2009-06-14 13:46:25 -07:00
2009-06-11 10:33:09 +03:00
2009-04-07 08:31:10 -07:00
2009-06-14 13:42:43 -07:00
2009-06-08 16:57:50 +01:00
2009-06-12 18:01:50 +02:00
2009-05-14 13:40:53 -04:00
2009-04-16 16:17:11 -07:00
2009-06-14 13:46:25 -07:00
2009-04-07 08:31:11 -07:00
2009-06-14 13:42:43 -07:00
2009-06-12 22:16:40 +09:30
2009-06-12 18:01:50 +02:00
2009-06-14 13:46:25 -07:00
2009-06-12 21:32:31 +02:00
2009-04-29 15:41:13 -03:00