scsi: message: fusion: Use direction definition DMA_BIDIRECTIONAL instead of PCI_DMA_BIDIRECTIONAL
Subsystems (2)
PATCH 1/1 scsi: message: fusion: Use direction definition DMA_BIDIRECTIONAL instead of PCI_DMA_BIDIRECTIONAL
Replace direction definition PCI_DMA_BIDIRECTIONAL with DMA_BIDIRECTIONAL, because it helps to enhance readability and avoid possible inconsistency.
Signed-off-by Cai Huoqing <[email protected]>
--- drivers/message/fusion/mptsas.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/message/fusion/mptsas.c +4 -4
@@ -2301,7 +2301,7 @@ static void mptsas_smp_handler(struct bsg_job *job, struct Scsi_Host *shost, << MPI_SGE_FLAGS_SHIFT;if (!dma_map_sg (&ioc->pcidev->dev, job->request_payload.sg_list, -1 ,PCI_DMA_BIDIRECTIONAL )) +1 ,DMA_BIDIRECTIONAL )) goto put_mf; flagsLength |= (sg_dma_len (job->request_payload.sg_list) -4 );
@@ -2318,7 +2318,7 @@ static void mptsas_smp_handler(struct bsg_job *job, struct Scsi_Host *shost, flagsLength = flagsLength <<MPI_SGE_FLAGS_SHIFT ;if (!dma_map_sg (&ioc->pcidev->dev, job->reply_payload.sg_list, -1 ,PCI_DMA_BIDIRECTIONAL )) +1 ,DMA_BIDIRECTIONAL )) goto unmap_out; flagsLength |=sg_dma_len (job->reply_payload.sg_list) +4 ; ioc->add_sge(psge, flagsLength,
@@ -2356,10 +2356,10 @@ static void mptsas_smp_handler(struct bsg_job *job, struct Scsi_Host *shost, unmap_in:dma_unmap_sg (&ioc->pcidev->dev, job->reply_payload.sg_list,1 , -PCI_DMA_BIDIRECTIONAL ); +DMA_BIDIRECTIONAL ); unmap_out:dma_unmap_sg (&ioc->pcidev->dev, job->request_payload.sg_list,1 , -PCI_DMA_BIDIRECTIONAL ); +DMA_BIDIRECTIONAL ); put_mf:if (mf)mpt_free_msg_frame (ioc, mf);
Signature · 1 line
2.25.1