Commit b0f85177 authored by Tomasz Figa's avatar Tomasz Figa Committed by Mike Turquette

clk: max77686: Refactor successful exit of probe function

The function can simply return 0, without jumping to a separate label,
which does exactly the same. This patch does not introduce any
functional change, just a clean-up.
Signed-off-by: default avatarTomasz Figa <t.figa@samsung.com>
Acked-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: default avatarMike Turquette <mturquette@linaro.org>
parent cf7d4a6f
...@@ -176,7 +176,7 @@ static int max77686_clk_probe(struct platform_device *pdev) ...@@ -176,7 +176,7 @@ static int max77686_clk_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, max77686_clks); platform_set_drvdata(pdev, max77686_clks);
goto out; return 0;
err_clk_pmic: err_clk_pmic:
clkdev_drop(max77686_clks[MAX77686_CLK_CP]->lookup); clkdev_drop(max77686_clks[MAX77686_CLK_CP]->lookup);
...@@ -185,7 +185,6 @@ static int max77686_clk_probe(struct platform_device *pdev) ...@@ -185,7 +185,6 @@ static int max77686_clk_probe(struct platform_device *pdev)
clkdev_drop(max77686_clks[MAX77686_CLK_AP]->lookup); clkdev_drop(max77686_clks[MAX77686_CLK_AP]->lookup);
kfree(max77686_clks[MAX77686_CLK_AP]->hw.clk); kfree(max77686_clks[MAX77686_CLK_AP]->hw.clk);
err_clk_ap: err_clk_ap:
out:
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment