Skip to content

Commit

Permalink
i3c: master: svc: fix returnvar.cocci warning
Browse files Browse the repository at this point in the history
Fix the following coccicheck warning:

drivers/i3c/master/svc-i3c-master.c:1600:5-8:
Unneeded variable: "ret". Return "0" on line 1605.

Signed-off-by: Guo Zhengkui <guozhengkui@vivo.com>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20220504164901.9622-1-guozhengkui@vivo.com
  • Loading branch information
Guo Zhengkui authored and Alexandre Belloni committed May 17, 2022
1 parent c157a60 commit 227fab1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/i3c/master/svc-i3c-master.c
Original file line number Diff line number Diff line change
Expand Up @@ -1597,12 +1597,11 @@ static int __maybe_unused svc_i3c_runtime_suspend(struct device *dev)
static int __maybe_unused svc_i3c_runtime_resume(struct device *dev)
{
struct svc_i3c_master *master = dev_get_drvdata(dev);
int ret = 0;

pinctrl_pm_select_default_state(dev);
svc_i3c_master_prepare_clks(master);

return ret;
return 0;
}

static const struct dev_pm_ops svc_i3c_pm_ops = {
Expand Down

0 comments on commit 227fab1

Please sign in to comment.