aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_attr.c
diff options
context:
space:
mode:
authorAndrew Vasquez <andrew.vasquez@qlogic.com>2010-03-19 20:04:02 -0400
committerJames Bottomley <James.Bottomley@suse.de>2010-04-11 10:45:53 -0400
commit6c452a45e5d8a93812360a5581e93ac5a8776025 (patch)
treed8629b01efa870dc8273158306e35f46259e98a2 /drivers/scsi/qla2xxx/qla_attr.c
parentbfdaa761d3f9663a4721f572e093dd2894cedaf9 (diff)
[SCSI] qla2xxx: General checkpatch corrections.
Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_attr.c')
-rw-r--r--drivers/scsi/qla2xxx/qla_attr.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/scsi/qla2xxx/qla_attr.c b/drivers/scsi/qla2xxx/qla_attr.c
index 90bf7ad42f67..0710e3c8760f 100644
--- a/drivers/scsi/qla2xxx/qla_attr.c
+++ b/drivers/scsi/qla2xxx/qla_attr.c
@@ -1177,15 +1177,13 @@ qla24xx_84xx_fw_version_show(struct device *dev,
1177 scsi_qla_host_t *vha = shost_priv(class_to_shost(dev)); 1177 scsi_qla_host_t *vha = shost_priv(class_to_shost(dev));
1178 struct qla_hw_data *ha = vha->hw; 1178 struct qla_hw_data *ha = vha->hw;
1179 1179
1180 if (IS_QLA84XX(ha) && ha->cs84xx) { 1180 if (IS_QLA84XX(ha) && ha->cs84xx)
1181 if (ha->cs84xx->op_fw_version == 0) { 1181 if (ha->cs84xx->op_fw_version == 0)
1182 rval = qla84xx_verify_chip(vha, status); 1182 rval = qla84xx_verify_chip(vha, status);
1183 }
1184 1183
1185 if ((rval == QLA_SUCCESS) && (status[0] == 0)) 1184 if ((rval == QLA_SUCCESS) && (status[0] == 0))
1186 return snprintf(buf, PAGE_SIZE, "%u\n", 1185 return snprintf(buf, PAGE_SIZE, "%u\n",
1187 (uint32_t)ha->cs84xx->op_fw_version); 1186 (uint32_t)ha->cs84xx->op_fw_version);
1188 }
1189 1187
1190 return snprintf(buf, PAGE_SIZE, "\n"); 1188 return snprintf(buf, PAGE_SIZE, "\n");
1191} 1189}