Julia Lawall
3040c8203d
HID: Drop NULL test on list_entry result
...
list_entry, which is an alias for container_of, cannot return NULL, as
there is no way to add a NULL value to a doubly linked list.
A simplified version of the semantic match that findds this problem is as
follows:
(http://www.emn.fr/x-info/coccinelle/ )
// <smpl>
@r@
expression x,E;
statement S1,S2;
position p,p1;
@@
*x = list_entry@p(...)
... when != x = E
*if@p1 (x == NULL) S1 else S2
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2009-07-23 01:28:02 +02:00
..
2009-06-26 00:23:42 -04:00
2009-07-05 22:39:08 +01:00
2009-07-14 22:42:56 -04:00
2009-07-12 13:02:10 -07:00
2009-07-22 10:06:33 -07:00
2009-07-12 12:22:34 -07:00
2009-07-20 16:38:43 -07:00
2009-06-24 21:08:11 +09:00
2009-07-21 12:43:51 -07:00
2009-07-08 19:04:23 -04:00
2009-06-24 18:34:40 +01:00
2009-06-30 18:55:59 -07:00
2009-07-06 14:03:44 -07:00
2009-07-12 12:22:34 -07:00
2009-07-15 16:56:48 +10:00
2009-07-23 01:28:02 +02:00
2009-07-11 13:42:38 +02:00
2009-07-15 00:03:56 +01:00
2009-07-21 20:36:25 -07:00
2009-07-06 14:03:44 -07:00
2009-06-23 10:38:47 -07:00
2009-07-22 09:25:31 -07:00
2009-07-20 16:38:43 -07:00
2009-07-03 15:45:29 +01:00
2009-07-17 21:47:44 +09:30
2009-06-26 14:37:25 +10:00
2009-07-10 20:31:53 +02:00
2009-07-12 12:22:34 -07:00
2009-06-22 08:54:14 -05:00
2009-07-08 09:32:41 -07:00
2009-07-12 12:22:34 -07:00
2009-07-20 16:46:34 -07:00
2009-07-15 11:30:59 +03:00
2009-07-22 09:49:58 -07:00
2009-07-10 12:35:36 +02:00
2009-07-08 10:30:03 -07:00
2009-06-30 18:55:59 -07:00
2009-07-12 12:22:34 -07:00
2009-07-08 10:30:03 -07:00
2009-07-09 20:33:18 -07:00
Merge branches 'acerhdf', 'acpi-pci-bind', 'bjorn-pci-root', 'bugzilla-12904', 'bugzilla-13121', 'bugzilla-13396', 'bugzilla-13533', 'bugzilla-13612', 'c3_lock', 'hid-cleanups', 'misc-2.6.31', 'pdc-leak-fix', 'pnpacpi', 'power_nocheck', 'thinkpad_acpi', 'video' and 'wmi' into release
2009-06-24 01:19:50 -04:00
2009-07-12 13:02:10 -07:00
2009-07-06 13:57:03 -07:00
2009-07-12 12:22:34 -07:00
2009-07-12 12:22:34 -07:00
2009-07-16 09:19:16 -07:00
2009-06-30 18:56:00 -07:00
2009-07-09 20:33:18 -07:00
2009-07-13 10:24:43 -07:00
2009-07-12 12:22:34 -07:00
2009-07-20 16:38:43 -07:00
2009-07-22 08:49:22 -07:00
2009-07-17 21:47:47 +09:30
2009-07-06 13:57:03 -07:00
2009-06-24 14:35:57 -07:00
2009-07-18 11:59:33 -07:00
2009-07-01 11:19:47 +02:00