linux/drivers/scsi/lpfc
Julia Lawall 372bd28290 [SCSI] lpfc: Move a dereference below a NULL test
In each case, 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>
@@
type T;
expression E;
identifier i,fld;
statement S;
@@

- T i = E->fld;
+ T i;
  ... when != E
      when != i
  if (E == NULL) S
+ i = E->fld;
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Acked-by: James Smart <James.Smart@Emulex.Com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
2009-01-02 10:59:38 -06:00
..
lpfc_attr.c [SCSI] lpfc : correct printk types on PPC compiles 2008-12-29 11:24:34 -06:00
lpfc_compat.h [PATCH] turn many #if $undefined_string into #ifdef $undefined_string 2005-07-27 16:26:08 -07:00
lpfc_crtn.h [SCSI] lpfc 8.3.0 : Add BlockGuard support (T10-DIF) structs and defs 2008-12-29 11:24:27 -06:00
lpfc_ct.c [SCSI] lpfc 8.3.0 : Fix multiple NPIV issues 2008-12-29 11:24:26 -06:00
lpfc_debugfs.c [SCSI] lpfc 8.3.0 : Hook lpfc's debugfs into Kconfig 2008-12-29 11:24:28 -06:00
lpfc_debugfs.h [SCSI] lpfc 8.3.0 : Hook lpfc's debugfs into Kconfig 2008-12-29 11:24:28 -06:00
lpfc_disc.h [SCSI] lpfc 8.2.8 v2 : Add statistical reporting control and additional fc vendor events 2008-10-13 09:28:57 -04:00
lpfc_els.c [SCSI] lpfc 8.3.0 : Fix several minor issues 2008-12-29 11:24:26 -06:00
lpfc_hbadisc.c [SCSI] lpfc 8.3.0 : Fix several minor issues 2008-12-29 11:24:26 -06:00
lpfc_hw.h [SCSI] lpfc 8.3.0 : Add BlockGuard support (T10-DIF) structs and defs 2008-12-29 11:24:27 -06:00
lpfc_init.c [SCSI] lpfc: Move a dereference below a NULL test 2009-01-02 10:59:38 -06:00
lpfc_logmsg.h [SCSI] lpfc 8.3.0 : Add BlockGuard support (T10-DIF) structs and defs 2008-12-29 11:24:27 -06:00
lpfc_mbox.c [SCSI] lpfc 8.3.0 : Add BlockGuard support (T10-DIF) code 2008-12-29 11:24:28 -06:00
lpfc_mem.c [SCSI] lpfc 8.2.8 v2 : Add statistical reporting control and additional fc vendor events 2008-10-13 09:28:57 -04:00
lpfc_nl.h [SCSI] lpfc 8.3.0 : Added 3 small features and improve PCI EEH support 2008-12-29 11:24:26 -06:00
lpfc_nportdisc.c [SCSI] lpfc 8.3.0 : Fix several minor issues 2008-12-29 11:24:26 -06:00
lpfc_scsi.c [SCSI] lpfc : correct printk types on PPC compiles 2008-12-29 11:24:34 -06:00
lpfc_scsi.h [SCSI] lpfc 8.3.0 : Add BlockGuard support (T10-DIF) code 2008-12-29 11:24:28 -06:00
lpfc_sli.c [SCSI] lpfc 8.3.0 : Add BlockGuard support (T10-DIF) code 2008-12-29 11:24:28 -06:00
lpfc_sli.h [SCSI] lpfc 8.2.8 : Add new FCOE hardware support 2008-10-13 09:28:54 -04:00
lpfc_version.h [SCSI] lpfc 8.3.0 : Update driver version to 8.3.0 2008-12-29 11:24:28 -06:00
lpfc_vport.c [SCSI] lpfc 8.3.0 : Fix multiple NPIV issues 2008-12-29 11:24:26 -06:00
lpfc_vport.h [SCSI] lpfc 8.2.8 v2 : Add statistical reporting control and additional fc vendor events 2008-10-13 09:28:57 -04:00
lpfc.h [SCSI] lpfc 8.3.0 : Hook lpfc's debugfs into Kconfig 2008-12-29 11:24:28 -06:00
Makefile [SCSI] lpfc: bug fixes 2007-06-17 22:38:11 -05:00