Skip to content

Commit

Permalink
[SCSI] qla2xxx: Correct logic-bug in set-model-info().
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
  • Loading branch information
Andrew Vasquez authored and James Bottomley committed Jun 8, 2009
1 parent 11bbc1d commit 1b91a2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/qla2xxx/qla_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -1538,7 +1538,7 @@ qla2x00_set_model_info(scsi_qla_host_t *vha, uint8_t *model, size_t len,
char *st, *en;
uint16_t index;
struct qla_hw_data *ha = vha->hw;
int use_tbl = !IS_QLA25XX(ha) && IS_QLA81XX(ha);
int use_tbl = !IS_QLA25XX(ha) && !IS_QLA81XX(ha);

if (memcmp(model, BINZERO, len) != 0) {
strncpy(ha->model_number, model, len);
Expand Down

0 comments on commit 1b91a2e

Please sign in to comment.