linux/drivers/scsi/lpfc
Arnd Bergmann 7934ff912c lpfc: fix misleading indentation
[ Upstream commit aeb6641f8e ]

gcc-6 complains about the indentation of the lpfc_destroy_vport_work_array()
call in lpfc_online(), which clearly doesn't look right:

drivers/scsi/lpfc/lpfc_init.c: In function 'lpfc_online':
drivers/scsi/lpfc/lpfc_init.c:2880:3: warning: statement is indented as if it were guarded by... [-Wmisleading-indentation]
   lpfc_destroy_vport_work_array(phba, vports);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/scsi/lpfc/lpfc_init.c:2863:2: note: ...this 'if' clause, but it is not
  if (vports != NULL)
  ^~

Looking at the patch that introduced this code, it's clear that the
behavior is correct and the indentation is wrong.

This fixes the indentation and adds curly braces around the previous
if() block for clarity, as that is most likely what caused the code
to be misindented in the first place.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 549e55cd2a ("[SCSI] lpfc 8.2.2 : Fix locking around HBA's port_list")
Reviewed-by: Sebastian Herbszt <herbszt@gmx.de>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Ewan D. Milne <emilne@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
History 2016-07-12 08:48:03 -04:00
..
lpfc.h lpfc: Update Copyright on changed files from 8.3.45 patches 2014-06-02 18:29:09 +02:00
lpfc_attr.c lpfc: fix low priority issues from fortify source code scan 2014-09-16 09:10:12 -07:00
lpfc_bsg.c lpfc: fix low priority issues from fortify source code scan 2014-09-16 09:10:12 -07:00
lpfc_bsg.h lpfc: Update Copyright on changed files from 8.3.45 patches 2014-06-02 18:29:09 +02:00
lpfc_compat.h [SCSI] lpfc 8.3.28: Critical Miscellaneous fixes 2011-12-15 10:57:45 +04:00
lpfc_crtn.h lpfc: fix quarantined XRI recovery qualifier state in link bounce 2014-09-16 09:10:09 -07:00
lpfc_ct.c lpfc: fix low priority issues from fortify source code scan 2014-09-16 09:10:12 -07:00
lpfc_debugfs.c lpfc: fix low priority issues from fortify source code scan 2014-09-16 09:10:12 -07:00
lpfc_debugfs.h [SCSI] lpfc 8.3.33: Tie parallel I/O queues into separate MSIX vectors 2012-09-14 14:41:19 +01:00
lpfc_disc.h lpfc: fix race between LOGO/PLOGI handling causing NULL pointer 2014-09-16 09:10:10 -07:00
lpfc_els.c lpfc: fix low priority issues from fortify source code scan 2014-09-16 09:10:12 -07:00
lpfc_hbadisc.c lpfc: fix low priority issues from fortify source code scan 2014-09-16 09:10:12 -07:00
lpfc_hw.h lpfc: Update Copyright on changed files from 8.3.45 patches 2014-06-02 18:29:09 +02:00
lpfc_hw4.h lpfc: Update Copyright on changed files from 8.3.45 patches 2014-06-02 18:29:09 +02:00
lpfc_init.c lpfc: fix misleading indentation 2016-07-12 08:48:03 -04:00
lpfc_logmsg.h [SCSI] lpfc 8.3.39: Fixed BlockGuard error reporting 2013-05-02 12:38:02 -07:00
lpfc_mbox.c lpfc: use dma_zalloc_coherent 2014-09-16 09:10:06 -07:00
lpfc_mem.c lpfc: Update Copyright on changed files from 8.3.45 patches 2014-06-02 18:29:09 +02:00
lpfc_nl.h Fix common misspellings 2011-03-31 11:26:23 -03:00
lpfc_nportdisc.c lpfc: fix high priority issues from fortify source code scan 2014-09-16 09:10:12 -07:00
lpfc_scsi.c lpfc: Fix scsi prep dma buf error. 2015-09-28 18:57:02 -04:00
lpfc_scsi.h lpfc: Update Copyright on changed files from 8.3.45 patches 2014-06-02 18:29:09 +02:00
lpfc_sli.c lpfc: fix for handling unmapped ndlp in target reset handler 2014-09-16 09:10:13 -07:00
lpfc_sli.h lpfc: fix locking issues with abort data paths 2014-09-16 09:10:11 -07:00
lpfc_sli4.h lpfc: fix high priority issues from fortify source code scan 2014-09-16 09:10:12 -07:00
lpfc_version.h lpfc: update lpfc version to driver version 10.4.8000.0 2014-09-16 09:10:14 -07:00
lpfc_vport.c [SCSI] lpfc 8.3.41: Update copyrights for 8.3.41 modifications 2013-08-23 13:25:44 -04:00
lpfc_vport.h [SCSI] lpfc 8.3.39: Fixed VPI allocation issues after firmware dump is performed 2013-05-02 12:37:45 -07:00
Makefile [SCSI] lpfc: fix problems with -Werror 2012-07-20 08:58:54 +01:00