linux/drivers/scsi/lpfc
Arnd Bergmann 5083db7727 lpfc: fix misleading indentation
commit aeb6641f8e upstream.

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: Ben Hutchings <ben@decadent.org.uk>
History 2016-05-01 00:06:02 +02: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 ExpressLane priority setup 2014-06-02 18:30:18 +02:00
lpfc_bsg.c lpfc: Update Copyright on changed files from 8.3.45 patches 2014-06-02 18:29:09 +02: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: Update Copyright on changed files 2014-06-02 18:29:05 +02:00
lpfc_ct.c [SCSI] lpfc: Fix typo on NULL assignment 2013-10-25 11:25:54 +01:00
lpfc_debugfs.c lpfc: Update Copyright on changed files 2014-06-02 18:29:05 +02: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 [SCSI] lpfc 8.3.44: Fix kernel panics from corrupted ndlp list 2014-03-15 10:18:55 -07:00
lpfc_els.c lpfc: Update Copyright on changed files 2014-06-02 18:29:05 +02:00
lpfc_hbadisc.c SCSI for-linus on 20140613 2014-06-14 19:49:48 -05: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-05-01 00:06:02 +02:00
lpfc_logmsg.h [SCSI] lpfc 8.3.39: Fixed BlockGuard error reporting 2013-05-02 12:38:02 -07:00
lpfc_mbox.c [SCSI] lpfc 8.3.41: Ensure driver properly zeros unused fields in SLI4 mailbox commands 2013-08-23 13:18:03 -04: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 [SCSI] lpfc 8.3.44: Fix Crash in lpfc_els_timeout_handler 2014-03-15 10:18:55 -07:00
lpfc_scsi.c lpfc: Update Copyright on changed files 2014-06-02 18:29:05 +02: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 ExpressLane priority setup 2014-06-02 18:30:18 +02:00
lpfc_sli.h lpfc: Update Copyright on changed files from 8.3.45 patches 2014-06-02 18:29:09 +02:00
lpfc_sli4.h lpfc: Update Copyright on changed files from 8.3.45 patches 2014-06-02 18:29:09 +02:00
lpfc_version.h lpfc: Update lpfc version to driver version 10.2.8001.0 2014-06-02 18:30:19 +02: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