Julia Lawall
3cad3da3ed
drivers/isdn: Drop unnecessary NULL test
...
The result of container_of should not be NULL. In particular, in this case
the argument to the enclosing function has passed though INIT_WORK, which
dereferences it, implying that its container cannot be NULL.
A simplified version of the semantic patch that makes this change is as
follows:
(http://www.emn.fr/x-info/coccinelle/ )
// <smpl>
@@
identifier fn,work,x,fld;
type T;
expression E1,E2;
statement S;
@@
static fn(struct work_struct *work) {
... when != work = E1
x = container_of(work,T,fld)
... when != x = E2
- if (x == NULL) S
...
}
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Karsten Keil <keil@b1-systems.de>
2009-07-25 20:22:51 +02:00
..
2009-07-25 20:22:51 +02:00
2006-10-03 23:01:26 +02:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2008-04-28 08:58:34 -07:00
2008-04-20 18:22:31 -04:00
2008-02-09 23:29:28 -08:00
2008-04-28 08:58:34 -07:00
2008-08-23 02:29:26 +02:00
2008-04-20 18:22:31 -04:00
2008-04-20 18:22:31 -04:00
2005-04-16 15:20:36 -07:00
2009-02-27 01:00:42 -08:00
2009-02-27 01:00:42 -08:00
2008-04-28 08:58:34 -07:00
2008-08-23 02:29:26 +02:00
2008-04-20 19:10:17 -04:00
2008-04-28 08:58:34 -07:00
2007-10-19 23:21:04 +02:00
2006-12-08 08:29:01 -08:00
2005-04-16 15:20:36 -07:00
2008-04-20 18:22:31 -04:00
2007-02-12 09:48:35 -08:00
2006-11-30 05:24:39 +01:00
2007-10-14 12:41:52 -07:00
2005-04-16 15:20:36 -07:00
2006-07-10 13:24:15 -07:00
2005-04-16 15:20:36 -07:00
2009-07-25 20:22:51 +02:00
2005-06-25 16:25:07 -07:00
2009-07-25 20:22:51 +02:00
2005-06-25 16:25:07 -07:00
2008-04-28 08:58:34 -07:00
2007-08-21 10:14:28 -07:00
2009-02-27 01:00:42 -08:00
2008-04-20 18:22:30 -04:00
2008-04-28 08:58:34 -07:00
2008-07-26 12:00:02 -07:00
2006-01-08 20:14:07 -08:00
2007-10-14 12:41:51 -07:00
2006-12-08 08:29:01 -08:00
2005-04-16 15:20:36 -07:00
2009-06-11 19:04:48 +02:00
2006-01-14 18:27:06 -08:00
2005-11-07 07:54:02 -08:00
2005-04-16 15:20:36 -07:00
2009-07-25 20:22:51 +02:00
2006-07-10 13:24:15 -07:00
2005-04-16 15:20:36 -07:00
2006-07-10 13:24:15 -07:00
2005-04-16 15:20:36 -07:00
2009-07-25 20:22:51 +02:00
2005-04-16 15:20:36 -07:00
2008-02-09 23:28:12 -08:00
2005-04-16 15:20:36 -07:00
2009-02-27 01:00:42 -08:00
2007-02-12 09:48:34 -08:00
2007-04-25 22:28:23 -07:00
2005-04-16 15:20:36 -07:00
2007-02-12 09:48:34 -08:00
2007-02-12 09:48:34 -08:00
2008-04-20 18:22:31 -04:00
2008-04-28 08:58:34 -07:00
2006-01-14 18:27:06 -08:00
2007-10-19 23:21:04 +02:00
2005-06-25 16:25:07 -07:00
2009-07-25 20:15:21 +02:00
2005-06-25 16:25:07 -07:00
2005-04-16 15:20:36 -07:00
2006-06-30 19:25:36 +02:00
2005-04-16 15:20:36 -07:00
2005-06-25 16:25:07 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2009-07-25 20:15:21 +02:00
2008-04-20 18:22:31 -04:00
2007-05-02 19:02:35 -07:00
2008-04-20 18:22:31 -04:00
2008-04-28 08:58:34 -07:00
2008-04-20 18:22:31 -04:00
2008-04-20 18:22:31 -04:00
2006-06-26 09:58:23 -07:00
2008-04-20 18:22:31 -04:00
2008-04-20 18:22:31 -04:00
2008-08-23 01:22:52 +02:00
2009-02-27 01:00:42 -08:00
2008-04-20 18:22:31 -04:00
2009-07-25 20:16:01 +02:00
2009-07-25 20:16:01 +02:00
2007-05-23 20:14:14 -07:00
2009-07-25 20:16:01 +02:00
2009-07-25 20:15:21 +02:00
2005-06-25 16:25:07 -07:00
2008-04-20 18:22:31 -04:00
2009-02-27 01:00:42 -08:00
2009-02-27 01:00:42 -08:00
2008-08-23 02:29:26 +02:00
2008-04-20 18:22:31 -04:00
2009-07-25 20:22:51 +02:00
2005-04-16 15:20:36 -07:00