android_kernel_motorola_sm6225/drivers/isdn
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
..
act2000 drivers/isdn/act2000: fix sparse warning: symbol shadows an earlier one 2009-02-27 01:00:41 -08:00
capi isdn: prevent NULL ptr Oops in capi_cmsg2str() 2009-06-08 00:45:51 -07:00
divert trivial: fix typos s/paramter/parameter/ and s/excute/execute/ in documentation and source comments. 2009-06-12 18:01:46 +02:00
gigaset gigaset: drop pointless check 2009-07-02 13:16:46 -07:00
hardware mISDN: Add support for Traverse Technologies NETJet PCI cards 2009-07-25 20:22:36 +02:00
hisax drivers/isdn: Drop unnecessary NULL test 2009-07-25 20:22:51 +02:00
hysdn net: convert remaining non-symbolic return values in ndo_start_xmit() functions 2009-07-05 19:23:38 -07:00
i4l ISDN: Fix isdnhdlc for one byte hdlc packets 2009-07-25 20:16:17 +02:00
icn fix ! versus & precedence in various places 2008-02-06 10:40:59 -08:00
isdnloop drivers/isdn: correct use of ! and & 2008-03-04 16:35:16 -08:00
mISDN mISDN: Make clearing B-channel a common function 2009-07-25 20:18:16 +02:00
pcbit isdn: remove some pointless conditionals before kfree_skb() 2009-02-26 23:07:29 -08:00
sc ISDN: fix sc/shmem printk format warning 2009-02-20 00:54:44 -08:00
Kconfig ISDN: Make isdnhdlc usable for other ISDN drivers 2009-07-25 20:15:21 +02:00
Makefile mISDN fix main ISDN Makefile 2008-08-02 16:28:20 +02:00