diff options
author | Tomasz Figa <t.figa@samsung.com> | 2013-08-23 18:56:31 +0200 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-11-18 11:44:08 +0900 |
commit | d3048056499e462b9dad2e28b4512aad0e4c793a (patch) | |
tree | 1536de32e0219c04047dfbb31d15a3d2318605d5 | |
parent | bd4815ab68cc2733ab6718065b1deb0a126f86e3 (diff) | |
download | linux-3.10-d3048056499e462b9dad2e28b4512aad0e4c793a.tar.gz linux-3.10-d3048056499e462b9dad2e28b4512aad0e4c793a.tar.bz2 linux-3.10-d3048056499e462b9dad2e28b4512aad0e4c793a.zip |
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: Tomasz Figa <t.figa@samsung.com>
-rw-r--r-- | drivers/clk/clk-max77686.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/clk/clk-max77686.c b/drivers/clk/clk-max77686.c index e40ecdb20fa..5d78460461e 100644 --- a/drivers/clk/clk-max77686.c +++ b/drivers/clk/clk-max77686.c @@ -178,7 +178,7 @@ static int max77686_clk_probe(struct platform_device *pdev) platform_set_drvdata(pdev, max77686_clks); - goto out; + return 0; err_clk_pmic: clkdev_drop(max77686_clks[MAX77686_CLK_CP]->lookup); @@ -187,7 +187,6 @@ err_clk_cp: clkdev_drop(max77686_clks[MAX77686_CLK_AP]->lookup); kfree(max77686_clks[MAX77686_CLK_AP]->hw.clk); err_clk_ap: -out: return ret; } |