[SCSI] qla2xxx: Correct logic-bug in set-model-info().

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Friday, June 12, 2009 - 11:04 am

Gitweb:     http://git.kernel.org/linus/1b91a2e6712393cffc33eeff5cf857f7d5b62fed
Commit:     1b91a2e6712393cffc33eeff5cf857f7d5b62fed
Parent:     11bbc1d896637c1d83b11cc3b97ed3d6d2076c63
Author:     Andrew Vasquez <andrew.vasquez@qlogic.com>
AuthorDate: Wed Jun 3 09:55:15 2009 -0700
Committer:  James Bottomley <James.Bottomley@HansenPartnership.com>
CommitDate: Mon Jun 8 14:46:38 2009 -0500

    [SCSI] qla2xxx: Correct logic-bug in set-model-info().
    
    Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
    Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
---
 drivers/scsi/qla2xxx/qla_init.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c
index 33e9248..a7abc10 100644
--- a/drivers/scsi/qla2xxx/qla_init.c
+++ b/drivers/scsi/qla2xxx/qla_init.c
@@ -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);
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[SCSI] qla2xxx: Correct logic-bug in set-model-info()., Linux Kernel Mailing ..., (Fri Jun 12, 11:04 am)