clk: max77686: Refactor successful exit of probe function
authorTomasz Figa <t.figa@samsung.com>
Thu, 12 Dec 2013 16:07:16 +0000 (17:07 +0100)
committerMike Turquette <mturquette@linaro.org>
Wed, 8 Jan 2014 17:46:03 +0000 (09:46 -0800)
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>
drivers/clk/clk-max77686.c

index d050d0b156d31ead5316abdb9f4e0a5c77542048..a8e83d45ad3f740cf8f7c4ff06a22c79eb88de68 100644 (file)
@@ -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;
 }