提交 a837bad6 编写于 作者: M Masahiro Yamada 提交者: Wolfram Sang

i2c: uniphier: rename jump label to follow coding style guideline

Documentation/CodingStyle recommends to use label names which say
what the goto does or why the goto exists.
Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
上级 973652db
...@@ -373,7 +373,7 @@ static int uniphier_i2c_probe(struct platform_device *pdev) ...@@ -373,7 +373,7 @@ static int uniphier_i2c_probe(struct platform_device *pdev)
if (!clk_rate) { if (!clk_rate) {
dev_err(dev, "input clock rate should not be zero\n"); dev_err(dev, "input clock rate should not be zero\n");
ret = -EINVAL; ret = -EINVAL;
goto err; goto disable_clk;
} }
init_completion(&priv->comp); init_completion(&priv->comp);
...@@ -392,11 +392,11 @@ static int uniphier_i2c_probe(struct platform_device *pdev) ...@@ -392,11 +392,11 @@ static int uniphier_i2c_probe(struct platform_device *pdev)
priv); priv);
if (ret) { if (ret) {
dev_err(dev, "failed to request irq %d\n", irq); dev_err(dev, "failed to request irq %d\n", irq);
goto err; goto disable_clk;
} }
ret = i2c_add_adapter(&priv->adap); ret = i2c_add_adapter(&priv->adap);
err: disable_clk:
if (ret) if (ret)
clk_disable_unprepare(priv->clk); clk_disable_unprepare(priv->clk);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册