android_kernel_xiaomi_sm8350/drivers/net/ibm_newemac
Julia Lawall 0021195c40 drivers/net: Move a dereference below a NULL test
If the NULL test is necessary, then the dereferences should be moved below
the NULL test.

The semantic patch that makes this change is as follows:
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@@
type T;
expression E,E1;
identifier i,fld;
statement S;
@@

- T i = E->fld;
+ T i;
  ... when != E=E1
      when != i
  BUG_ON (E == NULL||...);
+ i = E->fld;
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-07-21 13:00:43 -07:00
..
core.c net: use symbolic values for ndo_start_xmit() return codes 2009-06-13 01:18:50 -07:00
core.h
debug.c
debug.h
emac.h
Kconfig
Makefile
mal.c
mal.h
phy.c
phy.h
rgmii.c drivers/net: Move a dereference below a NULL test 2009-07-21 13:00:43 -07:00
rgmii.h
tah.c
tah.h
zmii.c
zmii.h