From 10961c3dfd9d8f0cc4362165bb35990f3764a471 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Fri, 3 Aug 2018 03:25:06 +0000 Subject: [PATCH] qla2x00t: Insert a space where the coding standard requires one git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7460 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- qla2x00t/qla_attr.c | 2 +- qla2x00t/qla_def.h | 2 +- qla2x00t/qla_gs.c | 2 +- qla2x00t/qla_mid.c | 2 +- qla2x00t/qla_nx.c | 2 +- qla2x00t/qla_os.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/qla2x00t/qla_attr.c b/qla2x00t/qla_attr.c index ddd87b157..86df2aae3 100644 --- a/qla2x00t/qla_attr.c +++ b/qla2x00t/qla_attr.c @@ -2280,7 +2280,7 @@ qla2x00_get_host_port_state(struct Scsi_Host *shost) fc_host_port_state(shost) = FC_PORTSTATE_DIAGNOSTICS; break; case LOOP_DOWN: - if(test_bit(LOOP_RESYNC_NEEDED, &base_vha->dpc_flags)) + if (test_bit(LOOP_RESYNC_NEEDED, &base_vha->dpc_flags)) fc_host_port_state(shost) = FC_PORTSTATE_DIAGNOSTICS; else fc_host_port_state(shost) = FC_PORTSTATE_LINKDOWN; diff --git a/qla2x00t/qla_def.h b/qla2x00t/qla_def.h index 638fd1b8f..ad0bbbc57 100644 --- a/qla2x00t/qla_def.h +++ b/qla2x00t/qla_def.h @@ -37,7 +37,7 @@ #include #endif -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,32) +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 32) #error #error ***This version of qla2xxx does not support distributions based on*** #error ***kernels less than 2.6.32.*** diff --git a/qla2x00t/qla_gs.c b/qla2x00t/qla_gs.c index c71c715a1..fd9ad3f0b 100644 --- a/qla2x00t/qla_gs.c +++ b/qla2x00t/qla_gs.c @@ -643,7 +643,7 @@ void qla2x00_get_sym_node_name(scsi_qla_host_t *vha, uint8_t *snn) { struct qla_hw_data *ha = vha->hw; - sprintf(snn, "%s FW:v%d.%02d.%02d DVR:v%s",ha->model_number, + sprintf(snn, "%s FW:v%d.%02d.%02d DVR:v%s", ha->model_number, ha->fw_major_version, ha->fw_minor_version, ha->fw_subminor_version, qla2x00_version_str); } diff --git a/qla2x00t/qla_mid.c b/qla2x00t/qla_mid.c index 490c0607a..9438849e5 100644 --- a/qla2x00t/qla_mid.c +++ b/qla2x00t/qla_mid.c @@ -343,7 +343,7 @@ qla2x00_vp_abort_isp(scsi_qla_host_t *vha) qla24xx_control_vp(vha, VCE_COMMAND_DISABLE_VPS_LOGO_ALL); /* See comment in qla24xx_init_vp() */ - if (qla_ini_mode_enabled(base_vha)){ + if (qla_ini_mode_enabled(base_vha)) { ql_dbg(ql_dbg_taskm, vha, 0x801d, "Scheduling enable of Vport %d.\n", vha->vp_idx); ret = qla24xx_enable_vp(vha); diff --git a/qla2x00t/qla_nx.c b/qla2x00t/qla_nx.c index 69cc5fdf0..19b192fe1 100644 --- a/qla2x00t/qla_nx.c +++ b/qla2x00t/qla_nx.c @@ -1647,7 +1647,7 @@ qla82xx_pci_info_str(struct scsi_qla_host *vha, char *str, int str_len) ha->link_width = (lnk >> 4) & 0x3f; strlcpy(str, "PCIe (", str_len); - strncat(str, "2.5Gb/s ",str_len - (strlen(str)+1)); + strncat(str, "2.5Gb/s ", str_len - (strlen(str)+1)); snprintf(lwstr, sizeof(lwstr), "x%d)", ha->link_width); strncat(str, lwstr, str_len - (strlen(str)+1)); return str; diff --git a/qla2x00t/qla_os.c b/qla2x00t/qla_os.c index 4f0030439..9cb2bdc6b 100644 --- a/qla2x00t/qla_os.c +++ b/qla2x00t/qla_os.c @@ -4564,7 +4564,7 @@ qla2xxx_pci_mmio_enabled(struct pci_dev *pdev) return PCI_ERS_RESULT_RECOVERED; spin_lock_irqsave(&ha->hardware_lock, flags); - if (IS_QLA2100(ha) || IS_QLA2200(ha)){ + if (IS_QLA2100(ha) || IS_QLA2200(ha)) { stat = RD_REG_DWORD(®->hccr); if (stat & HCCR_RISC_PAUSE) risc_paused = 1;