diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2007-05-25 12:55:38 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2007-05-31 13:23:49 -0400 |
commit | 385d70b4e2659ae525a00e46a9f97146949cfc14 (patch) | |
tree | 35f34aefd41261f6bc2f4c31d308e1d0a75c4be0 /drivers/scsi/qla2xxx/qla_os.c | |
parent | b1192d5ebab2f1664295a748b6ee6e89f3b07188 (diff) |
[SCSI] qla2xxx: convert to use the data buffer accessors
- remove the unnecessary map_single path.
- convert to use the new accessors for the sg lists and the
parameters.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Acked-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_os.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_os.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index dd076da86a46..18baa5bf69c4 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c | |||
@@ -2426,13 +2426,7 @@ qla2x00_sp_free_dma(scsi_qla_host_t *ha, srb_t *sp) | |||
2426 | struct scsi_cmnd *cmd = sp->cmd; | 2426 | struct scsi_cmnd *cmd = sp->cmd; |
2427 | 2427 | ||
2428 | if (sp->flags & SRB_DMA_VALID) { | 2428 | if (sp->flags & SRB_DMA_VALID) { |
2429 | if (cmd->use_sg) { | 2429 | scsi_dma_unmap(cmd); |
2430 | dma_unmap_sg(&ha->pdev->dev, cmd->request_buffer, | ||
2431 | cmd->use_sg, cmd->sc_data_direction); | ||
2432 | } else if (cmd->request_bufflen) { | ||
2433 | dma_unmap_single(&ha->pdev->dev, sp->dma_handle, | ||
2434 | cmd->request_bufflen, cmd->sc_data_direction); | ||
2435 | } | ||
2436 | sp->flags &= ~SRB_DMA_VALID; | 2430 | sp->flags &= ~SRB_DMA_VALID; |
2437 | } | 2431 | } |
2438 | CMD_SP(cmd) = NULL; | 2432 | CMD_SP(cmd) = NULL; |