Commit a14e9323 authored by tangbin's avatar tangbin Committed by Mark Brown

ASoC: loongson: remove unnecessary assignment in i2s_resume()

In this function, the assignment ret is unnecessary,
thus remove it.
Signed-off-by: default avatartangbin <tangbin@cmss.chinamobile.com>
Link: https://patch.msgid.link/20240903090301.6192-1-tangbin@cmss.chinamobile.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent dc70fd02
...@@ -255,13 +255,10 @@ static int i2s_suspend(struct device *dev) ...@@ -255,13 +255,10 @@ static int i2s_suspend(struct device *dev)
static int i2s_resume(struct device *dev) static int i2s_resume(struct device *dev)
{ {
struct loongson_i2s *i2s = dev_get_drvdata(dev); struct loongson_i2s *i2s = dev_get_drvdata(dev);
int ret;
regcache_cache_only(i2s->regmap, false); regcache_cache_only(i2s->regmap, false);
regcache_mark_dirty(i2s->regmap); regcache_mark_dirty(i2s->regmap);
ret = regcache_sync(i2s->regmap); return regcache_sync(i2s->regmap);
return ret;
} }
const struct dev_pm_ops loongson_i2s_pm = { const struct dev_pm_ops loongson_i2s_pm = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment