diff options
author | Minghao Chi <[email protected]> | 2022-05-05 02:21:02 +0000 |
---|---|---|
committer | Mark Brown <[email protected]> | 2022-05-09 12:48:43 +0100 |
commit | 5cb3bdd6bdcda6293aafe2a5adaaa44d011fbdf2 (patch) | |
tree | 9077c9fddcf8097ceb9db419ed41a0f541e28cc6 | |
parent | 74eaa8126f50e52a19f055eed002cc76cf3122dc (diff) |
ASoC: pcm186x: simplify the return expression of pcm186x_power_off()
Simplify the return expression.
Reported-by: Zeal Robot <[email protected]>
Signed-off-by: Minghao Chi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
-rw-r--r-- | sound/soc/codecs/pcm186x.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sound/soc/codecs/pcm186x.c b/sound/soc/codecs/pcm186x.c index 2c78dccb3f62..fda9d7ee3fe6 100644 --- a/sound/soc/codecs/pcm186x.c +++ b/sound/soc/codecs/pcm186x.c @@ -534,19 +534,14 @@ static int pcm186x_power_on(struct snd_soc_component *component) static int pcm186x_power_off(struct snd_soc_component *component) { struct pcm186x_priv *priv = snd_soc_component_get_drvdata(component); - int ret; snd_soc_component_update_bits(component, PCM186X_POWER_CTRL, PCM186X_PWR_CTRL_PWRDN, PCM186X_PWR_CTRL_PWRDN); regcache_cache_only(priv->regmap, true); - ret = regulator_bulk_disable(ARRAY_SIZE(priv->supplies), + return regulator_bulk_disable(ARRAY_SIZE(priv->supplies), priv->supplies); - if (ret) - return ret; - - return 0; } static int pcm186x_set_bias_level(struct snd_soc_component *component, |