/* This routine does DMA un-mapping of scatter gather list of scsi command field of @lpfc_cmd for device with SLI-3 interface spec.  */
static void lpfc_scsi_unprep_dma_buf(struct lpfc_hba *phba, struct lpfc_scsi_buf *psb)
/* This routine does DMA un-mapping of scatter gather list of scsi command field of @lpfc_cmd for device with SLI-3 interface spec.  */
static void lpfc_scsi_unprep_dma_buf(struct lpfc_hba *phba, struct lpfc_scsi_buf *psb)
{
	if (psb->seg_cnt > 0)
		scsi_dma_unmap(psb->pCmd);
	if (psb->prot_seg_cnt > 0)
		dma_unmap_sg(&phba->pcidev->dev, scsi_prot_sglist(psb->pCmd),
				scsi_prot_sg_count(psb->pCmd),
				psb->pCmd->sc_data_direction);
}