Skip to content

Commit

Permalink
[SCSI] qla4xxx: Use correct value for max flash node entries
Browse files Browse the repository at this point in the history
Use correct value for max flash node entries supported
based on adapter type.

Signed-off-by: Adheer Chandravanshi <adheer.chandravanshi@qlogic.com>
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>
  • Loading branch information
Adheer Chandravanshi authored and James Bottomley committed Apr 11, 2013
1 parent 37719c2 commit a957a7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/scsi/qla4xxx/ql4_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -5587,7 +5587,7 @@ static int qla4xxx_sysfs_ddb_add(struct Scsi_Host *shost, const char *buf,
goto exit_ddb_add;
}

max_ddbs = is_qla40XX(ha) ? MAX_DEV_DB_ENTRIES_40XX :
max_ddbs = is_qla40XX(ha) ? MAX_PRST_DEV_DB_ENTRIES :
MAX_DEV_DB_ENTRIES;

fw_ddb_entry = dma_alloc_coherent(&ha->pdev->dev, sizeof(*fw_ddb_entry),
Expand Down Expand Up @@ -6707,7 +6707,7 @@ static int qla4xxx_sysfs_ddb_export(struct scsi_qla_host *ha)
return -ENOMEM;
}

max_ddbs = is_qla40XX(ha) ? MAX_DEV_DB_ENTRIES_40XX :
max_ddbs = is_qla40XX(ha) ? MAX_PRST_DEV_DB_ENTRIES :
MAX_DEV_DB_ENTRIES;

for (idx = 0; idx < max_ddbs; idx++) {
Expand Down

0 comments on commit a957a7d

Please sign in to comment.