summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authortangbin <tangbin@cmss.chinamobile.com>2024-09-03 12:03:01 +0300
committerMark Brown <broonie@kernel.org>2024-09-03 14:36:59 +0300
commita14e9323267d8f20bdb5a1cebc4abc5abd80cfb2 (patch)
treee4fd2c423157bf983b9f099e29d0240d7229ad38 /sound
parentdc70fd02404398388f3471a57b9f4e26c0eeba5e (diff)
downloadlinux-a14e9323267d8f20bdb5a1cebc4abc5abd80cfb2.tar.xz
ASoC: loongson: remove unnecessary assignment in i2s_resume()
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>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/loongson/loongson_i2s.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sound/soc/loongson/loongson_i2s.c b/sound/soc/loongson/loongson_i2s.c
index d45228a3a558..3b9786076501 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 = {