diff options
-rw-r--r-- | drivers/scsi/qla2xxx/qla_init.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index 51f81b272776..825700ae5041 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c | |||
@@ -1794,7 +1794,8 @@ qla2x00_set_model_info(scsi_qla_host_t *vha, uint8_t *model, size_t len, | |||
1794 | char *st, *en; | 1794 | char *st, *en; |
1795 | uint16_t index; | 1795 | uint16_t index; |
1796 | struct qla_hw_data *ha = vha->hw; | 1796 | struct qla_hw_data *ha = vha->hw; |
1797 | int use_tbl = !IS_QLA25XX(ha) && !IS_QLA81XX(ha); | 1797 | int use_tbl = !IS_QLA24XX_TYPE(ha) && !IS_QLA25XX(ha) && |
1798 | !IS_QLA81XX(ha); | ||
1798 | 1799 | ||
1799 | if (memcmp(model, BINZERO, len) != 0) { | 1800 | if (memcmp(model, BINZERO, len) != 0) { |
1800 | strncpy(ha->model_number, model, len); | 1801 | strncpy(ha->model_number, model, len); |