i2c: uniphier-f: rename jump label to follow coding style guideline
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 4 Nov 2016 10:49:21 +0000 (19:49 +0900)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 18 Nov 2016 01:16:08 +0000 (02:16 +0100)
Documentation/CodingStyle recommends to use label names which say
what the goto does or why the goto exists.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-uniphier-f.c

index db9105e52c79a1ad7ba0c9b867a617244f40b874..beee31892295ed50e8ec4a97a152f8e18b239640 100644 (file)
@@ -528,7 +528,7 @@ static int uniphier_fi2c_probe(struct platform_device *pdev)
        if (!clk_rate) {
                dev_err(dev, "input clock rate should not be zero\n");
                ret = -EINVAL;
-               goto err;
+               goto disable_clk;
        }
 
        init_completion(&priv->comp);
@@ -547,11 +547,11 @@ static int uniphier_fi2c_probe(struct platform_device *pdev)
                               pdev->name, priv);
        if (ret) {
                dev_err(dev, "failed to request irq %d\n", irq);
-               goto err;
+               goto disable_clk;
        }
 
        ret = i2c_add_adapter(&priv->adap);
-err:
+disable_clk:
        if (ret)
                clk_disable_unprepare(priv->clk);