linux/drivers/scsi/lpfc
Arnd Bergmann 8e9a156140 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2016-05-11 11:21:12 +02:00
..
lpfc.h lpfc: Add support for Lancer G6 and 32G FC links 2015-10-27 10:17:51 +09:00
lpfc_attr.c lpfc: Add support for Lancer G6 and 32G FC links 2015-10-27 10:17:51 +09:00
lpfc_bsg.c lpfc: remove set but not used variables 2015-10-27 10:06:00 +09:00
lpfc_bsg.h lpfc: Update copyright to 2015 2015-04-10 07:50:42 -07:00
lpfc_compat.h [SCSI] lpfc 8.3.28: Critical Miscellaneous fixes 2011-12-15 10:57:45 +04:00
lpfc_crtn.h lpfc: Add support for RDP ELS command. 2015-06-05 22:34:55 -07:00
lpfc_ct.c lpfc: Add support for Lancer G6 and 32G FC links 2015-10-27 10:17:51 +09:00
lpfc_debugfs.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2015-06-23 14:08:54 -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 rport leak. 2015-06-05 22:40:19 -07:00
lpfc_els.c lpfc: fix memory leak and NULL dereference 2015-11-09 17:08:03 -08:00
lpfc_hbadisc.c lpfc: Fix default RA_TOV and ED_TOV in the FC/FCoE driver for all topologies 2015-10-27 10:22:33 +09:00
lpfc_hw.h lpfc: Fix default RA_TOV and ED_TOV in the FC/FCoE driver for all topologies 2015-10-27 10:22:33 +09:00
lpfc_hw4.h lpfc: Fix cq_id masking problem. 2015-06-13 08:22:59 -07:00
lpfc_init.c lpfc: fix misleading indentation 2016-05-11 11:21:12 +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 lpfc: Add support for Lancer G6 and 32G FC links 2015-10-27 10:17:51 +09: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: remove set but not used variables 2015-10-27 10:06:00 +09:00
lpfc_scsi.c scsi: use host wide tags by default 2015-11-09 17:11:57 -08:00
lpfc_scsi.h lpfc: Add support for using block multi-queue 2015-06-13 08:20:59 -07:00
lpfc_sli.c lpfc: remove set but not used variables 2015-10-27 10:06:00 +09:00
lpfc_sli.h lpfc: Update copyright to 2015 2015-04-10 07:50:42 -07:00
lpfc_sli4.h Fix kmalloc overflow in LPFC driver at large core count 2015-10-27 10:00:53 +09:00
lpfc_version.h lpfc: Update version to 11.0.0.0 for upstream patch set 2015-10-27 10:24:46 +09:00
lpfc_vport.c lpfc: Fix crash in vport_delete. 2015-06-05 22:39:07 -07: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