/* scsi_dma_unmap - unmap command's sg lists mapped by scsi_dma_map @cmd: scsi command  */
void scsi_dma_unmap(struct scsi_cmnd *cmd)
/* scsi_dma_unmap - unmap command's sg lists mapped by scsi_dma_map @cmd: scsi command  */
void scsi_dma_unmap(struct scsi_cmnd *cmd)
{
	if (scsi_sg_count(cmd)) {
		struct device *dev = cmd->device->host->dma_dev;
		dma_unmap_sg(dev, scsi_sglist(cmd), scsi_sg_count(cmd),
			     cmd->sc_data_direction);
	}
}