kernel_optimize_test/drivers/isdn/hisax
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
..
amd7930_fn.c drivers/isdn: Drop unnecessary NULL test 2009-07-25 20:22:51 +02:00
amd7930_fn.h
arcofi.c
arcofi.h
asuscom.c isdn: replace remaining __FUNCTION__ occurrences 2008-04-28 08:58:34 -07:00
avm_a1.c [ISDN] Hisax: eliminate many unnecessary references to CardType[] 2008-04-20 18:22:31 -04:00
avm_a1p.c isdn: fix section mismatch warning for ISACVer 2008-02-09 23:29:28 -08:00
avm_pci.c isdn: replace remaining __FUNCTION__ occurrences 2008-04-28 08:58:34 -07:00
avma1_cs.c pcmcia: deprecate CS_SUCCESS 2008-08-23 02:29:26 +02:00
bkm_a4t.c [ISDN] Hisax: eliminate many unnecessary references to CardType[] 2008-04-20 18:22:31 -04:00
bkm_a8.c [ISDN] Hisax: eliminate many unnecessary references to CardType[] 2008-04-20 18:22:31 -04:00
bkm_ax.h
callc.c drivers/isdn/hisax: fix sparse warning: Should it be static? 2009-02-27 01:00:42 -08:00
config.c drivers/isdn/hisax: fix sparse warning: Should it be static? 2009-02-27 01:00:42 -08:00
diva.c isdn: replace remaining __FUNCTION__ occurrences 2008-04-28 08:58:34 -07:00
elsa_cs.c pcmcia: deprecate CS_SUCCESS 2008-08-23 02:29:26 +02:00
elsa_ser.c [ISDN] minor irq handler cleanups 2008-04-20 19:10:17 -04:00
elsa.c isdn: replace remaining __FUNCTION__ occurrences 2008-04-28 08:58:34 -07:00
enternow_pci.c
fsm.c
fsm.h
gazel.c [ISDN] Hisax: eliminate many unnecessary references to CardType[] 2008-04-20 18:22:31 -04:00
hfc4s8s_l1.c
hfc4s8s_l1.h
hfc_2bds0.c
hfc_2bds0.h
hfc_2bs0.c
hfc_2bs0.h
hfc_pci.c drivers/isdn: Drop unnecessary NULL test 2009-07-25 20:22:51 +02:00
hfc_pci.h
hfc_sx.c drivers/isdn: Drop unnecessary NULL test 2009-07-25 20:22:51 +02:00
hfc_sx.h
hfc_usb.c isdn: replace remaining __FUNCTION__ occurrences 2008-04-28 08:58:34 -07:00
hfc_usb.h
hfcscard.c drivers/isdn/hisax: fix sparse warning: Should it be static? 2009-02-27 01:00:42 -08:00
hisax_cfg.h [ISDN] HiSax: modularization prep 2008-04-20 18:22:30 -04:00
hisax_debug.h isdn: replace remaining __FUNCTION__ occurrences 2008-04-28 08:58:34 -07:00
hisax_fcpcipnp.c pnp: fix the fcpnp_driver declaration to only exist if CONFIG_PNP=y 2008-07-26 12:00:02 -07:00
hisax_fcpcipnp.h
hisax_if.h
hisax_isac.c
hisax_isac.h
hisax.h ISDN:Fix DMA alloc for hfcpci 2009-06-11 19:04:48 +02:00
hscx_irq.c
hscx.c
hscx.h
icc.c drivers/isdn: Drop unnecessary NULL test 2009-07-25 20:22:51 +02:00
icc.h
ipac.h
ipacx.c
ipacx.h
isac.c drivers/isdn: Drop unnecessary NULL test 2009-07-25 20:22:51 +02:00
isac.h
isar.c isdn: fix section mismatch warnings in isac.c and isar.c 2008-02-09 23:28:12 -08:00
isar.h
isdnl1.c drivers/isdn/hisax: fix sparse warning: Should it be static? 2009-02-27 01:00:42 -08:00
isdnl1.h
isdnl2.c
isdnl2.h
isdnl3.c
isdnl3.h
isurf.c [ISDN] Hisax: eliminate many unnecessary references to CardType[] 2008-04-20 18:22:31 -04:00
ix1_micro.c isdn: replace remaining __FUNCTION__ occurrences 2008-04-28 08:58:34 -07:00
jade_irq.c
jade.c
jade.h
Kconfig ISDN: Make isdnhdlc usable for other ISDN drivers 2009-07-25 20:15:21 +02:00
l3_1tr6.c
l3_1tr6.h
l3dss1.c
l3dss1.h
l3ni1.c
l3ni1.h
lmgr.c
Makefile ISDN: Make isdnhdlc usable for other ISDN drivers 2009-07-25 20:15:21 +02:00
mic.c [ISDN] Hisax: eliminate many unnecessary references to CardType[] 2008-04-20 18:22:31 -04:00
netjet.c
netjet.h [ISDN] Hisax: eliminate many unnecessary references to CardType[] 2008-04-20 18:22:31 -04:00
niccy.c isdn: replace remaining __FUNCTION__ occurrences 2008-04-28 08:58:34 -07:00
nj_s.c [ISDN] Hisax: eliminate many unnecessary references to CardType[] 2008-04-20 18:22:31 -04:00
nj_u.c [ISDN] Hisax: eliminate many unnecessary references to CardType[] 2008-04-20 18:22:31 -04:00
q931.c
s0box.c [ISDN] Hisax: eliminate many unnecessary references to CardType[] 2008-04-20 18:22:31 -04:00
saphir.c [ISDN] Hisax: eliminate many unnecessary references to CardType[] 2008-04-20 18:22:31 -04:00
sedlbauer_cs.c pcmcia: pcmcia_config_loop() improvement by passing vcc 2008-08-23 01:22:52 +02:00
sedlbauer.c drivers/isdn/hisax: fix sparse warning: Should it be static? 2009-02-27 01:00:42 -08:00
sportster.c [ISDN] Hisax: eliminate many unnecessary references to CardType[] 2008-04-20 18:22:31 -04:00
st5481_b.c ISDN: Add support for none reverse bitstreams to isdnhdc 2009-07-25 20:16:01 +02:00
st5481_d.c ISDN: Add support for none reverse bitstreams to isdnhdc 2009-07-25 20:16:01 +02:00
st5481_init.c
st5481_usb.c ISDN: Add support for none reverse bitstreams to isdnhdc 2009-07-25 20:16:01 +02:00
st5481.h ISDN: Make isdnhdlc usable for other ISDN drivers 2009-07-25 20:15:21 +02:00
tei.c
teleint.c [ISDN] Hisax: eliminate many unnecessary references to CardType[] 2008-04-20 18:22:31 -04:00
teles0.c drivers/isdn/hisax: fix sparse warning: Should it be static? 2009-02-27 01:00:42 -08:00
teles3.c drivers/isdn/hisax: fix sparse warning: Should it be static? 2009-02-27 01:00:42 -08:00
teles_cs.c pcmcia: deprecate CS_SUCCESS 2008-08-23 02:29:26 +02:00
telespci.c [ISDN] Hisax: eliminate many unnecessary references to CardType[] 2008-04-20 18:22:31 -04:00
w6692.c drivers/isdn: Drop unnecessary NULL test 2009-07-25 20:22:51 +02:00
w6692.h