diff options
author | Andrew Vasquez <andrew.vasquez@qlogic.com> | 2005-07-06 13:32:37 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.(none)> | 2005-07-14 11:13:11 -0400 |
commit | cc4731f5b4539faea237bacd170a27a230a7e724 (patch) | |
tree | e1c9df14e591a29680b4a287972b74cc53f2b5d7 /drivers/scsi/qla2xxx/qla_init.c | |
parent | ae91193cd5bc80b4d62b1d4f0e7f3fea48f41ccd (diff) |
[SCSI] qla2xxx: Correct maximum supported lun and target-id definitions.
Correct maximum supported lun and target-id definitions.
The driver uses command-IOCBs which support a maximum lun
value of 0xffff -- correct #define to reflect the change.
Also, remove superfluous MAX_TARGET definition.
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_init.c')
-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 ffe2ac66e69d..3fd63804319d 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c | |||
@@ -2094,7 +2094,8 @@ qla2x00_reg_remote_port(scsi_qla_host_t *ha, fc_port_t *fcport) | |||
2094 | qla_printk(KERN_WARNING, ha, | 2094 | qla_printk(KERN_WARNING, ha, |
2095 | "Unable to allocate fc remote port!\n"); | 2095 | "Unable to allocate fc remote port!\n"); |
2096 | 2096 | ||
2097 | if (rport->scsi_target_id != -1 && rport->scsi_target_id < MAX_TARGETS) | 2097 | if (rport->scsi_target_id != -1 && |
2098 | rport->scsi_target_id < ha->host->max_id) | ||
2098 | fcport->os_target_id = rport->scsi_target_id; | 2099 | fcport->os_target_id = rport->scsi_target_id; |
2099 | 2100 | ||
2100 | rport->dd_data = fcport; | 2101 | rport->dd_data = fcport; |