Commit c87592fe authored by Takashi Iwai's avatar Takashi Iwai
Browse files

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: default avatarJaroslav Kysela <perex@perex.cz>
Acked-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 4f39e4c9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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)