i2c: uniphier: rename jump label to follow coding style guideline
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 4 Nov 2016 10:49:20 +0000 (19:49 +0900)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 18 Nov 2016 01:13:11 +0000 (02:13 +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.c

index 56e92af46ddc40a1d8642fac92cf3afd86a7f3d0..777c0fe9365368953b71407b11c65b9cd7b0ff63 100644 (file)
@@ -373,7 +373,7 @@ static int uniphier_i2c_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);
@@ -392,11 +392,11 @@ static int uniphier_i2c_probe(struct platform_device *pdev)
                               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);