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>
This commit is contained in:
tangbin 2024-09-03 17:03:01 +08:00 committed by Mark Brown
parent dc70fd0240
commit a14e932326
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View 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 = {