diff mbox series

sound: soc/uniphier: Simplify the return expression of uniphier_aio_startup

Message ID 20210224085407.22120-1-dingsenjie@163.com
State New
Headers show
Series sound: soc/uniphier: Simplify the return expression of uniphier_aio_startup | expand

Commit Message

dingsenjie@163.com Feb. 24, 2021, 8:54 a.m. UTC
From: dingsenjie <dingsenjie@yulong.com>

Simplify the return expression in the aio-cpu.c.

Signed-off-by: dingsenjie <dingsenjie@yulong.com>
---
 sound/soc/uniphier/aio-cpu.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

Comments

Mark Brown March 1, 2021, 11:34 p.m. UTC | #1
On Wed, 24 Feb 2021 16:54:07 +0800, dingsenjie@163.com wrote:
> Simplify the return expression in the aio-cpu.c.

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/1] sound: soc/uniphier: Simplify the return expression of uniphier_aio_startup
      commit: e3fdb6288dd08d965dea4bf00186e20f79153b2b

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark
diff mbox series

Patch

diff --git a/sound/soc/uniphier/aio-cpu.c b/sound/soc/uniphier/aio-cpu.c
index 25c40c2..cf98141 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,