diff options
author | dingsenjie <dingsenjie@yulong.com> | 2021-02-24 11:54:07 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-03-10 16:07:15 +0300 |
commit | 13fba3e873b1f21ed3de6596568ef02d31050b6f (patch) | |
tree | 3113fc6c7e5fa79ea020d45494055c91ba5d59ec | |
parent | 933f98be60a7b9c287acb081fb5d6659dd5e0441 (diff) | |
download | linux-13fba3e873b1f21ed3de6596568ef02d31050b6f.tar.xz |
ASoC: uniphier: Simplify the return expression of uniphier_aio_startup
Simplify the return expression in the aio-cpu.c.
Signed-off-by: dingsenjie <dingsenjie@yulong.com>
Link: https://lore.kernel.org/r/20210224085407.22120-1-dingsenjie@163.com
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/uniphier/aio-cpu.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sound/soc/uniphier/aio-cpu.c b/sound/soc/uniphier/aio-cpu.c index 25c40c28eba4..cf9814130067 100644 --- a/sound/soc/uniphier/aio-cpu.c +++ b/sound/soc/uniphier/aio-cpu.c @@ -256,17 +256,12 @@ static int uniphier_aio_startup(struct snd_pcm_substream *substream, { struct uniphier_aio *aio = uniphier_priv(dai); struct uniphier_aio_sub *sub = &aio->sub[substream->stream]; - int ret; sub->substream = substream; sub->pass_through = 0; sub->use_mmap = true; - ret = aio_init(sub); - if (ret) - return ret; - - return 0; + return aio_init(sub); } static void uniphier_aio_shutdown(struct snd_pcm_substream *substream, |