android_kernel_xiaomi_sm8350/drivers/message/fusion
Julia Lawall c31558efcc [SCSI] fusion: Move a dereference below a NULL test
If the NULL test is necessary, then the dereference 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>
@disable is_null@
identifier f;
expression E;
identifier fld;
statement S;
@@

+ if (E == NULL) S
  f(...,E->fld,...);
- if (E == NULL) S

@@
identifier f;
expression E;
identifier fld;
statement S;
@@

+ if (!E) S
  f(...,E->fld,...);
- if (!E) S
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Acked-by: "Prakash, Sathya" <Sathya.Prakash@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
2009-01-02 12:11:15 -06:00
..
lsi
Kconfig
Makefile
mptbase.c [SCSI] fusion: use ARRAY_SIZE 2008-12-29 11:24:17 -06:00
mptbase.h
mptctl.c [SCSI] fusion: Move a dereference below a NULL test 2009-01-02 12:11:15 -06:00
mptctl.h
mptdebug.h
mptfc.c
mptlan.c mptlan: Kill directly reference of netdev->priv 2008-12-03 21:13:37 -08:00
mptlan.h mptlan: Kill directly reference of netdev->priv 2008-12-03 21:13:37 -08:00
mptsas.c
mptsas.h
mptscsih.c [SCSI] mpt fusion: clear list of outstanding commands on host reset 2008-12-16 13:38:52 -06:00
mptscsih.h
mptspi.c