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 Documentation cleanup: trivial misspelling, punctuation, and grammar corrections. 2008-07-26 12:00:06 -07:00
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 [SCSI] replace __FUNCTION__ with __func__ 2008-07-27 10:31:49 -04:00
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 [SCSI] replace __FUNCTION__ with __func__ 2008-07-27 10:31:49 -04:00
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