diff options
author | Tomasz Figa <t.figa@samsung.com> | 2013-12-12 17:07:16 +0100 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2014-01-08 09:46:03 -0800 |
commit | b0f851777131b9fbd6f5853bea1f6144e88c1c72 (patch) | |
tree | 9f22b59eba56f8517612964a106a45f5e5fbe724 | |
parent | cf7d4a6f845ea9e57fb6dacccf823b7c7eff4e8a (diff) | |
download | linux-b0f851777131b9fbd6f5853bea1f6144e88c1c72.tar.bz2 |
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>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
-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 d050d0b156d3..a8e83d45ad3f 100644 --- a/drivers/clk/clk-max77686.c +++ b/drivers/clk/clk-max77686.c @@ -176,7 +176,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); @@ -185,7 +185,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; } |