aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_os.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_os.c')
-rw-r--r--drivers/scsi/qla2xxx/qla_os.c8
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;