]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[SCSI] qla4xxx: Added missing check for ISP83XX in CHAP related functions
authorVikas Chaudhary <vikas.chaudhary@qlogic.com>
Fri, 22 Mar 2013 11:08:31 +0000 (07:08 -0400)
committerJames Bottomley <JBottomley@Parallels.com>
Thu, 11 Apr 2013 21:30:30 +0000 (14:30 -0700)
Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/qla4xxx/ql4_mbx.c
drivers/scsi/qla4xxx/ql4_os.c

index 446511d5812438b93daa25db6f3c22a02c4393d2..ce4654501fabcc648c1b9ae4cdcbe22fc390b563 100644 (file)
@@ -1531,7 +1531,7 @@ int qla4xxx_get_chap_index(struct scsi_qla_host *ha, char *username,
        int max_chap_entries = 0;
        struct ql4_chap_table *chap_table;
 
-       if (is_qla8022(ha))
+       if (is_qla80XX(ha))
                max_chap_entries = (ha->hw.flt_chap_size / 2) /
                                                sizeof(struct ql4_chap_table);
        else
index a6ce04d1adaead4300bf3bb10fbfb8f538c96851..18f857a3b89650a93c4f5150d845c889ed928cc7 100644 (file)
@@ -391,7 +391,7 @@ static int qla4xxx_get_chap_list(struct Scsi_Host *shost, uint16_t chap_tbl_idx,
        int valid_chap_entries = 0;
        int ret = 0, i;
 
-       if (is_qla8022(ha))
+       if (is_qla80XX(ha))
                max_chap_entries = (ha->hw.flt_chap_size / 2) /
                                        sizeof(struct ql4_chap_table);
        else
@@ -495,7 +495,7 @@ static int qla4xxx_delete_chap(struct Scsi_Host *shost, uint16_t chap_tbl_idx)
 
        memset(chap_table, 0, sizeof(struct ql4_chap_table));
 
-       if (is_qla8022(ha))
+       if (is_qla80XX(ha))
                max_chap_entries = (ha->hw.flt_chap_size / 2) /
                                   sizeof(struct ql4_chap_table);
        else
@@ -4087,7 +4087,7 @@ static int qla4xxx_get_bidi_chap(struct scsi_qla_host *ha, char *username,
        int max_chap_entries = 0;
        struct ql4_chap_table *chap_table;
 
-       if (is_qla8022(ha))
+       if (is_qla80XX(ha))
                max_chap_entries = (ha->hw.flt_chap_size / 2) /
                                                sizeof(struct ql4_chap_table);
        else