android_kernel_xiaomi_sm8350/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
avm_a1.c
avm_a1p.c
avm_pci.c
avma1_cs.c pcmcia: deprecate CS_SUCCESS 2008-08-23 02:29:26 +02:00
bkm_a4t.c
bkm_a8.c
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
elsa_cs.c pcmcia: deprecate CS_SUCCESS 2008-08-23 02:29:26 +02:00
elsa_ser.c
elsa.c
enternow_pci.c
fsm.c
fsm.h
gazel.c
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
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
hisax_debug.h
hisax_fcpcipnp.c
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
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
ix1_micro.c
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
netjet.c
netjet.h
niccy.c
nj_s.c
nj_u.c
q931.c
s0box.c
saphir.c
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
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
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
w6692.c drivers/isdn: Drop unnecessary NULL test 2009-07-25 20:22:51 +02:00
w6692.h