[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>
This commit is contained in:
Andrew Vasquez
2005-07-06 10:32:37 -07:00
committed by James Bottomley
parent ae91193cd5
commit cc4731f5b4
2 changed files with 3 additions and 3 deletions

View File

@@ -2094,7 +2094,8 @@ qla2x00_reg_remote_port(scsi_qla_host_t *ha, fc_port_t *fcport)
qla_printk(KERN_WARNING, ha,
"Unable to allocate fc remote port!\n");
if (rport->scsi_target_id != -1 && rport->scsi_target_id < MAX_TARGETS)
if (rport->scsi_target_id != -1 &&
rport->scsi_target_id < ha->host->max_id)
fcport->os_target_id = rport->scsi_target_id;
rport->dd_data = fcport;