regulator: max8660: remove redundant assignment of variable ret
Variable ret is initialized to a value that is never read before a return statement and hence can be removed. Remove it. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Link: https://lore.kernel.org/r/20190813133114.14931-1-colin.king@canonical.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
d9df0187b6
commit
9e127fab67
@ -485,7 +485,6 @@ static int max8660_probe(struct i2c_client *client,
|
|||||||
rdev = devm_regulator_register(&client->dev,
|
rdev = devm_regulator_register(&client->dev,
|
||||||
&max8660_reg[id], &config);
|
&max8660_reg[id], &config);
|
||||||
if (IS_ERR(rdev)) {
|
if (IS_ERR(rdev)) {
|
||||||
ret = PTR_ERR(rdev);
|
|
||||||
dev_err(&client->dev, "failed to register %s\n",
|
dev_err(&client->dev, "failed to register %s\n",
|
||||||
max8660_reg[id].name);
|
max8660_reg[id].name);
|
||||||
return PTR_ERR(rdev);
|
return PTR_ERR(rdev);
|
||||||
|
Loading…
Reference in New Issue
Block a user