diff options
author | Takashi Iwai <tiwai@suse.de> | 2019-02-04 10:39:15 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-02-06 12:29:11 -0500 |
commit | 15486e63e7ce2794e6b82843ac6c57146080d98b (patch) | |
tree | 60df5924b43a7b2f27aa8d6f66ef2ca8ff80a894 /sound/soc/mediatek | |
parent | 62961dd5f609b202080e7d9053de1a8967c9d4d8 (diff) |
ASoC: mediatek: 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/mediatek')
-rw-r--r-- | sound/soc/mediatek/common/mtk-afe-platform-driver.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/mediatek/common/mtk-afe-platform-driver.c b/sound/soc/mediatek/common/mtk-afe-platform-driver.c index 697aa50aff9a..3ce527ce30ce 100644 --- a/sound/soc/mediatek/common/mtk-afe-platform-driver.c +++ b/sound/soc/mediatek/common/mtk-afe-platform-driver.c | |||
@@ -126,9 +126,9 @@ int mtk_afe_pcm_new(struct snd_soc_pcm_runtime *rtd) | |||
126 | struct mtk_base_afe *afe = snd_soc_component_get_drvdata(component); | 126 | struct mtk_base_afe *afe = snd_soc_component_get_drvdata(component); |
127 | 127 | ||
128 | size = afe->mtk_afe_hardware->buffer_bytes_max; | 128 | size = afe->mtk_afe_hardware->buffer_bytes_max; |
129 | return snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, | 129 | snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, |
130 | afe->dev, | 130 | afe->dev, size, size); |
131 | size, size); | 131 | return 0; |
132 | } | 132 | } |
133 | EXPORT_SYMBOL_GPL(mtk_afe_pcm_new); | 133 | EXPORT_SYMBOL_GPL(mtk_afe_pcm_new); |
134 | 134 | ||