ASoC: mediatek: Drop superfluous PCM preallocation error checks
authorTakashi Iwai <tiwai@suse.de>
Mon, 4 Feb 2019 15:39:15 +0000 (16:39 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 6 Feb 2019 17:29:11 +0000 (18:29 +0100)
commit15486e63e7ce2794e6b82843ac6c57146080d98b
tree60df5924b43a7b2f27aa8d6f66ef2ca8ff80a894
parent62961dd5f609b202080e7d9053de1a8967c9d4d8
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>
sound/soc/mediatek/common/mtk-afe-platform-driver.c