android_kernel_samsung_msm8976/drivers/scsi/lpfc
Arnd Bergmann 834f5956da lpfc: fix misleading indentation
commit aeb6641f8ebdd61939f462a8255b316f9bfab707 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: Willy Tarreau <w@1wt.eu>
2016-06-07 10:42:52 +02:00
..
Makefile
lpfc.h [SCSI] lpfc 8.3.39: Fixed driver vector mapping to CPU affinity 2013-05-02 13:10:25 -07:00
lpfc_attr.c [SCSI] lpfc 8.3.39: Fixed driver vector mapping to CPU affinity 2013-05-02 13:10:25 -07:00
lpfc_bsg.c [SCSI] lpfc 8.3.39: Fixed crash when processing bsg's sg list with high memory pages 2013-05-02 13:00:01 -07:00
lpfc_bsg.h
lpfc_compat.h
lpfc_crtn.h [SCSI] lpfc 8.3.39: Fixed not returning FAILED status when SCSI invoking host reset handler failed 2013-05-02 13:06:38 -07:00
lpfc_ct.c
lpfc_debugfs.c lseek(fd, n, SEEK_END) does *not* go to eof - n 2013-06-16 08:10:53 -10:00
lpfc_debugfs.h
lpfc_disc.h
lpfc_els.c [SCSI] lpfc 8.3.39: Reduced tmo value set to FLOGI WQE for quick recovery from FLOGI sequence timeout 2013-05-02 13:13:11 -07:00
lpfc_hbadisc.c [SCSI] lpfc 8.3.39: Fixed driver handling of CLEAR_LA with NPIV enabled causing SID=0 frames out 2013-05-02 13:14:43 -07:00
lpfc_hw.h [SCSI] lpfc 8.3.39: Fixed BlockGuard to take advantage of rdprotect/wrprotect info when available 2013-05-02 13:02:40 -07:00
lpfc_hw4.h [SCSI] lpfc 8.3.39: Fixed driver vector mapping to CPU affinity 2013-05-02 13:10:25 -07:00
lpfc_init.c lpfc: fix misleading indentation 2016-06-07 10:42:52 +02:00
lpfc_logmsg.h
lpfc_mbox.c
lpfc_mem.c [SCSI] lpfc 8.3.39: Fix driver issues with large s/g lists for BlockGuard 2013-05-02 12:46:20 -07:00
lpfc_nl.h
lpfc_nportdisc.c
lpfc_scsi.c [SCSI] lpfc 8.3.39: Fixed iocb flags not being reset for scsi commands 2013-05-02 13:08:53 -07:00
lpfc_scsi.h
lpfc_sli.c lpfc: Add iotag memory barrier 2015-06-29 12:08:34 -07:00
lpfc_sli.h
lpfc_sli4.h [SCSI] lpfc 8.3.39: Fixed driver vector mapping to CPU affinity 2013-05-02 13:10:25 -07:00
lpfc_version.h [SCSI] lpfc 8.3.39: Update lpfc version for 8.3.39 driver release 2013-05-02 13:15:37 -07:00
lpfc_vport.c
lpfc_vport.h