mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-04 04:02:26 +00:00
ASoC: samsung: remove unneeded ret variable
Return value from io_remap_pfn_range() directly instead of taking this in another redundant variable. Reported-by: Zeal Robot <zealci@zte.com.cn> Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn> Signed-off-by: CGEL ZTE <cgel.zte@gmail.com> Link: https://lore.kernel.org/r/20220117110357.863990-1-chi.minghao@zte.com.cn Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
4ec19deec7
commit
de531908ca
@ -244,17 +244,14 @@ static int idma_mmap(struct snd_soc_component *component,
|
||||
{
|
||||
struct snd_pcm_runtime *runtime = substream->runtime;
|
||||
unsigned long size, offset;
|
||||
int ret;
|
||||
|
||||
/* From snd_pcm_lib_mmap_iomem */
|
||||
vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
|
||||
size = vma->vm_end - vma->vm_start;
|
||||
offset = vma->vm_pgoff << PAGE_SHIFT;
|
||||
ret = io_remap_pfn_range(vma, vma->vm_start,
|
||||
return io_remap_pfn_range(vma, vma->vm_start,
|
||||
(runtime->dma_addr + offset) >> PAGE_SHIFT,
|
||||
size, vma->vm_page_prot);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
static irqreturn_t iis_irq(int irqno, void *dev_id)
|
||||
|
Loading…
Reference in New Issue
Block a user