瀏覽代碼

i2c: uniphier-f: 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: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Masahiro Yamada 8 年之前
父節點
當前提交
b92b7dbc71
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      drivers/i2c/busses/i2c-uniphier-f.c

+ 3 - 3
drivers/i2c/busses/i2c-uniphier-f.c

@@ -528,7 +528,7 @@ static int uniphier_fi2c_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);
@@ -547,11 +547,11 @@ static int uniphier_fi2c_probe(struct platform_device *pdev)
 			       pdev->name, priv);
 			       pdev->name, 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);