mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 23:27:06 +00:00
ASoC: uniphier: Drop superfluous PCM preallocation error checks
snd_pcm_lib_preallocate_pages() and co always succeed, so the error check is simply redundant. Drop it. Reviewed-by: Jaroslav Kysela <perex@perex.cz> Acked-by: Mark Brown <broonie@kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
4f39e4c969
commit
c87592fec3
1 changed files with 2 additions and 1 deletions
|
@ -235,10 +235,11 @@ static int uniphier_aiodma_new(struct snd_soc_pcm_runtime *rtd)
|
|||
if (ret)
|
||||
return ret;
|
||||
|
||||
return snd_pcm_lib_preallocate_pages_for_all(pcm,
|
||||
snd_pcm_lib_preallocate_pages_for_all(pcm,
|
||||
SNDRV_DMA_TYPE_DEV, dev,
|
||||
uniphier_aiodma_hw.buffer_bytes_max,
|
||||
uniphier_aiodma_hw.buffer_bytes_max);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void uniphier_aiodma_free(struct snd_pcm *pcm)
|
||||
|
|
Loading…
Reference in a new issue