diff options
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_attr.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_attr.c | 6 |
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 | } |