summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Figa <t.figa@samsung.com>2013-08-23 18:56:31 +0200
committerChanho Park <chanho61.park@samsung.com>2014-03-20 17:34:52 +0900
commitbb6598855e9df93b044353d5f15b096d0d484a86 (patch)
tree11a95e23eb12ee9e0fb1e3d11b0ce8a7826d8faf
parentf6caf3daa14b0f2298361628ce8d39b953a72b3e (diff)
downloadlinux-3.10-bb6598855e9df93b044353d5f15b096d0d484a86.tar.gz
linux-3.10-bb6598855e9df93b044353d5f15b096d0d484a86.tar.bz2
linux-3.10-bb6598855e9df93b044353d5f15b096d0d484a86.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.c3
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;
}