aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sound/soc/uniphier
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2019-02-04 16:40:55 +0100
committerTakashi Iwai <tiwai@suse.de>2019-02-06 18:29:39 +0100
commitc87592fec3963c8f7f95db866cb260cee48d76a3 (patch)
treef5fee58ae479ab62baed7fb7caecf28e1edbc732 /sound/soc/uniphier
parentASoC: txx9: Drop superfluous PCM preallocation error checks (diff)
downloadwireguard-linux-c87592fec3963c8f7f95db866cb260cee48d76a3.tar.xz
wireguard-linux-c87592fec3963c8f7f95db866cb260cee48d76a3.zip
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>
Diffstat (limited to 'sound/soc/uniphier')
-rw-r--r--sound/soc/uniphier/aio-dma.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/uniphier/aio-dma.c b/sound/soc/uniphier/aio-dma.c
index 4ec6b65bfb44..fa001d3c1a88 100644
--- a/sound/soc/uniphier/aio-dma.c
+++ b/sound/soc/uniphier/aio-dma.c
@@ -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)