Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

tangbin and committed by
Mark Brown
a14e9323 dc70fd02

+1 -4
+1 -4
sound/soc/loongson/loongson_i2s.c
··· 255 255 static int i2s_resume(struct device *dev) 256 256 { 257 257 struct loongson_i2s *i2s = dev_get_drvdata(dev); 258 - int ret; 259 258 260 259 regcache_cache_only(i2s->regmap, false); 261 260 regcache_mark_dirty(i2s->regmap); 262 - ret = regcache_sync(i2s->regmap); 263 - 264 - return ret; 261 + return regcache_sync(i2s->regmap); 265 262 } 266 263 267 264 const struct dev_pm_ops loongson_i2s_pm = {