diff mbox series

ASoC: loongson: remove unnecessary assignment in i2s_resume()

Message ID 20240903090301.6192-1-tangbin@cmss.chinamobile.com (mailing list archive)
State Accepted
Commit a14e9323267d8f20bdb5a1cebc4abc5abd80cfb2
Headers show
Series ASoC: loongson: remove unnecessary assignment in i2s_resume() | expand

Commit Message

Tang Bin Sept. 3, 2024, 9:03 a.m. UTC
In this function, the assignment ret is unnecessary,
thus remove it.

Signed-off-by: tangbin <tangbin@cmss.chinamobile.com>
---
 sound/soc/loongson/loongson_i2s.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

Comments

Mark Brown Sept. 3, 2024, 8:23 p.m. UTC | #1
On Tue, 03 Sep 2024 17:03:01 +0800, tangbin wrote:
> In this function, the assignment ret is unnecessary,
> thus remove it.
> 
> 

Applied to

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

Thanks!

[1/1] ASoC: loongson: remove unnecessary assignment in i2s_resume()
      commit: a14e9323267d8f20bdb5a1cebc4abc5abd80cfb2

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/loongson/loongson_i2s.c b/sound/soc/loongson/loongson_i2s.c
index d45228a3a..3b9786076 100644
--- a/sound/soc/loongson/loongson_i2s.c
+++ b/sound/soc/loongson/loongson_i2s.c
@@ -255,13 +255,10 @@  static int i2s_suspend(struct device *dev)
 static int i2s_resume(struct device *dev)
 {
 	struct loongson_i2s *i2s = dev_get_drvdata(dev);
-	int ret;
 
 	regcache_cache_only(i2s->regmap, false);
 	regcache_mark_dirty(i2s->regmap);
-	ret = regcache_sync(i2s->regmap);
-
-	return ret;
+	return regcache_sync(i2s->regmap);
 }
 
 const struct dev_pm_ops loongson_i2s_pm = {