aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_iocb.c
diff options
context:
space:
mode:
authorAndrew Vasquez <andrew.vasquez@qlogic.com>2005-10-27 14:09:58 -0400
committerJames Bottomley <jejb@mulgrave.(none)>2005-10-28 12:52:33 -0400
commit661c3f6cc32e1307fc7df724149884c95e98358d (patch)
tree8709c0ae11143284ae34bd07b321917a038b3515 /drivers/scsi/qla2xxx/qla_iocb.c
parent4fdfefe52944f5c4132a372ed5c208962a73c3f2 (diff)
[SCSI] qla2xxx: Use midlayer's int_to_scsilun() function.
While populating command type 6 and 7 IOCBs. 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_iocb.c')
-rw-r--r--drivers/scsi/qla2xxx/qla_iocb.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/qla2xxx/qla_iocb.c b/drivers/scsi/qla2xxx/qla_iocb.c
index d7355627f110..b58ee79177bc 100644
--- a/drivers/scsi/qla2xxx/qla_iocb.c
+++ b/drivers/scsi/qla2xxx/qla_iocb.c
@@ -839,8 +839,7 @@ qla24xx_start_scsi(srb_t *sp)
839 cmd_pkt->port_id[1] = sp->fcport->d_id.b.area; 839 cmd_pkt->port_id[1] = sp->fcport->d_id.b.area;
840 cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain; 840 cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain;
841 841
842 cmd_pkt->lun[1] = LSB(sp->cmd->device->lun); 842 int_to_scsilun(sp->cmd->device->lun, &cmd_pkt->lun);
843 cmd_pkt->lun[2] = MSB(sp->cmd->device->lun);
844 843
845 /* Update tagged queuing modifier -- default is TSK_SIMPLE (0). */ 844 /* Update tagged queuing modifier -- default is TSK_SIMPLE (0). */
846 if (scsi_populate_tag_msg(cmd, tag)) { 845 if (scsi_populate_tag_msg(cmd, tag)) {