]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: loongson: remove unnecessary assignment in i2s_resume()
authortangbin <tangbin@cmss.chinamobile.com>
Tue, 3 Sep 2024 09:03:01 +0000 (17:03 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 3 Sep 2024 11:36:59 +0000 (12:36 +0100)
In this function, the assignment ret is unnecessary,
thus remove it.

Signed-off-by: tangbin <tangbin@cmss.chinamobile.com>
Link: https://patch.msgid.link/20240903090301.6192-1-tangbin@cmss.chinamobile.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/loongson/loongson_i2s.c

index d45228a3a558b0322c00954277b657805b54727d..3b9786076501b713ba0445642938e9f419298e33 100644 (file)
@@ -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 = {