scsi: qla2xxx: Use tabs to indent code
authorBart Van Assche <bvanassche@acm.org>
Thu, 11 Apr 2019 21:53:16 +0000 (14:53 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 16 Apr 2019 02:04:39 +0000 (22:04 -0400)
Most but not all code in the qla2xxx driver uses tabs for indentation.
Make the qla2xxx code easier to read by using tabs consistently for
indentation. This patch improves conformance with the Linux kernel coding
style.

Cc: Himanshu Madhani <hmadhani@marvell.com>
Cc: Giridhar Malavali <gmalavali@marvell.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Acked-by: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_init.c
drivers/scsi/qla2xxx/qla_iocb.c

index 557a80fc72482ec67ba2d781f9698335d4b8ea40..85119682bcdb26300d667ffbb3157a78b931ab39 100644 (file)
@@ -1620,21 +1620,21 @@ void qla2x00_fcport_event_handler(scsi_qla_host_t *vha, struct event_arg *ea)
  */
 void qla_rscn_replay(fc_port_t *fcport)
 {
-       struct event_arg ea;
-
-       switch (fcport->disc_state) {
-       case DSC_DELETE_PEND:
-               return;
-       default:
-               break;
-       }
-
-       if (fcport->scan_needed) {
-               memset(&ea, 0, sizeof(ea));
-               ea.event = FCME_RSCN;
-               ea.id = fcport->d_id;
-               ea.id.b.rsvd_1 = RSCN_PORT_ADDR;
-               qla2x00_fcport_event_handler(fcport->vha, &ea);
+       struct event_arg ea;
+
+       switch (fcport->disc_state) {
+       case DSC_DELETE_PEND:
+               return;
+       default:
+               break;
+       }
+
+       if (fcport->scan_needed) {
+               memset(&ea, 0, sizeof(ea));
+               ea.event = FCME_RSCN;
+               ea.id = fcport->d_id;
+               ea.id.b.rsvd_1 = RSCN_PORT_ADDR;
+               qla2x00_fcport_event_handler(fcport->vha, &ea);
        }
 }
 
index 56278da413319142e5e8e1591f0625be3ef11ce0..35db4a1d87070924ae7d452f40f1ad445c18ae84 100644 (file)
@@ -1518,18 +1518,18 @@ qla24xx_build_scsi_crc_2_iocbs(srb_t *sp, struct cmd_type_crc_2 *cmd_pkt,
        switch (scsi_get_prot_op(GET_CMD_SP(sp))) {
        case SCSI_PROT_READ_INSERT:
        case SCSI_PROT_WRITE_STRIP:
-           total_bytes = data_bytes;
-           data_bytes += dif_bytes;
-           break;
+               total_bytes = data_bytes;
+               data_bytes += dif_bytes;
+               break;
 
        case SCSI_PROT_READ_STRIP:
        case SCSI_PROT_WRITE_INSERT:
        case SCSI_PROT_READ_PASS:
        case SCSI_PROT_WRITE_PASS:
-           total_bytes = data_bytes + dif_bytes;
-           break;
+               total_bytes = data_bytes + dif_bytes;
+               break;
        default:
-           BUG();
+               BUG();
        }
 
        if (!qla2x00_hba_err_chk_enabled(sp))