/* Return value 0 on success, non-zero error code on failure  */
static void pmcraid_release_passthrough_ioadls(struct pmcraid_cmd *cmd, int buflen, int direction)
/* Return value 0 on success, non-zero error code on failure  */
static void pmcraid_release_passthrough_ioadls(struct pmcraid_cmd *cmd, int buflen, int direction)
{
	struct pmcraid_sglist *sglist = cmd->sglist;
	if (buflen > 0) {
		pci_unmap_sg(cmd->drv_inst->pdev,
			     sglist->scatterlist,
			     sglist->num_sg,
			     direction);
		pmcraid_free_sglist(sglist);
		cmd->sglist = NULL;
	}
}