diff options
author | Boaz Harrosh <bharrosh@panasas.com> | 2007-10-17 03:21:19 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2007-10-17 03:21:19 -0400 |
commit | 2428427e49beddd8ebc53054219fac2cc9ffee23 (patch) | |
tree | 22b128278e1e0e490f0b7a4c61dd8bb04a660019 /drivers/scsi/ide-scsi.c | |
parent | ebb3e820b83e426ee331bae6d8fb0e54f472a25d (diff) |
[SCSI] ide-scsi: use scsi_sg_count() instead of ->use_sg
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'drivers/scsi/ide-scsi.c')
-rw-r--r-- | drivers/scsi/ide-scsi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/ide-scsi.c b/drivers/scsi/ide-scsi.c index d297f64cd432..bd74f6c44b6b 100644 --- a/drivers/scsi/ide-scsi.c +++ b/drivers/scsi/ide-scsi.c | |||
@@ -807,7 +807,7 @@ static int idescsi_queue (struct scsi_cmnd *cmd, | |||
807 | memcpy (pc->c, cmd->cmnd, cmd->cmd_len); | 807 | memcpy (pc->c, cmd->cmnd, cmd->cmd_len); |
808 | pc->buffer = NULL; | 808 | pc->buffer = NULL; |
809 | pc->sg = scsi_sglist(cmd); | 809 | pc->sg = scsi_sglist(cmd); |
810 | pc->last_sg = sg_last(pc->sg, cmd->use_sg); | 810 | pc->last_sg = sg_last(pc->sg, scsi_sg_count(cmd)); |
811 | pc->b_count = 0; | 811 | pc->b_count = 0; |
812 | pc->request_transfer = pc->buffer_size = scsi_bufflen(cmd); | 812 | pc->request_transfer = pc->buffer_size = scsi_bufflen(cmd); |
813 | pc->scsi_cmd = cmd; | 813 | pc->scsi_cmd = cmd; |