summaryrefslogtreecommitdiff
path: root/sound/soc/xtensa
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2019-02-04 18:41:09 +0300
committerTakashi Iwai <tiwai@suse.de>2019-02-06 20:29:44 +0300
commit8eea18f6a433cec20ec80d13f8483faa99ccb65f (patch)
tree293f5afcebc2b3315d032c40f630988e9c446a61 /sound/soc/xtensa
parentc87592fec3963c8f7f95db866cb260cee48d76a3 (diff)
downloadlinux-8eea18f6a433cec20ec80d13f8483faa99ccb65f.tar.xz
ASoC: xtensa: 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/xtensa')
-rw-r--r--sound/soc/xtensa/xtfpga-i2s.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/xtensa/xtfpga-i2s.c b/sound/soc/xtensa/xtfpga-i2s.c
index 503560916620..2f20a02c8d46 100644
--- a/sound/soc/xtensa/xtfpga-i2s.c
+++ b/sound/soc/xtensa/xtfpga-i2s.c
@@ -469,9 +469,9 @@ static int xtfpga_pcm_new(struct snd_soc_pcm_runtime *rtd)
struct snd_card *card = rtd->card->snd_card;
size_t size = xtfpga_pcm_hardware.buffer_bytes_max;
- return snd_pcm_lib_preallocate_pages_for_all(rtd->pcm,
- SNDRV_DMA_TYPE_DEV,
- card->dev, size, size);
+ snd_pcm_lib_preallocate_pages_for_all(rtd->pcm, SNDRV_DMA_TYPE_DEV,
+ card->dev, size, size);
+ return 0;
}
static const struct snd_pcm_ops xtfpga_pcm_ops = {