mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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: Masahiro Yamada <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
This commit is contained in:
parent
973652db6f
commit
a837bad6f2
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue