ASoC: uniphier: Simplify the return expression of uniphier_aio_startup
authordingsenjie <dingsenjie@yulong.com>
Wed, 24 Feb 2021 08:54:07 +0000 (16:54 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 10 Mar 2021 13:07:15 +0000 (13:07 +0000)
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>
sound/soc/uniphier/aio-cpu.c

index 25c40c28eba4722970484da9891772b898b3d4c1..cf9814130067acc9bccbefa8806c84e6d364ee44 100644 (file)
@@ -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,