Skip to content

Commit

Permalink
ASoC: uniphier: Simplify the return expression of uniphier_aio_startup
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
dingsenjie authored and broonie committed Mar 10, 2021
1 parent 933f98b commit 13fba3e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions sound/soc/uniphier/aio-cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 13fba3e

Please sign in to comment.