Skip to content

Commit 863b917

Browse files
Matthias Kaehlckebroonie
authored andcommitted
ASoC: qcom: lpass-sc7180: Delete redundant error log from _resume()
sc7180_lpass_dev_resume() logs an error if clk_bulk_prepare_enable() fails. The clock framework already generates error logs if anything goes wrong, so the logging in _resume() is redundant, drop it. Signed-off-by: Matthias Kaehlcke <[email protected]> Reviewed-by: Douglas Anderson <[email protected]> Link: https://lore.kernel.org/r/20221129001633.v2.1.I8d1993f41f0da1eac0ecba321678ac489f9c0b9b@changeid Signed-off-by: Mark Brown <[email protected]>
1 parent a3a96e9 commit 863b917

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

sound/soc/qcom/lpass-sc7180.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -165,15 +165,9 @@ static int sc7180_lpass_exit(struct platform_device *pdev)
165165

166166
static int sc7180_lpass_dev_resume(struct device *dev)
167167
{
168-
int ret = 0;
169168
struct lpass_data *drvdata = dev_get_drvdata(dev);
170169

171-
ret = clk_bulk_prepare_enable(drvdata->num_clks, drvdata->clks);
172-
if (ret) {
173-
dev_err(dev, "sc7180 clk prepare and enable failed\n");
174-
return ret;
175-
}
176-
return ret;
170+
return clk_bulk_prepare_enable(drvdata->num_clks, drvdata->clks);
177171
}
178172

179173
static int sc7180_lpass_dev_suspend(struct device *dev)

0 commit comments

Comments
 (0)