diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-08-13 16:31:14 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-08-15 17:09:21 +0300 |
commit | 9e127fab67e3ec4451696da0c7872fd291b9372b (patch) | |
tree | 7ea9b04a439b605344e1655f1af1786091da2bb8 /drivers/regulator | |
parent | d9df0187b6edd5871255cee29128c63f134e599c (diff) | |
download | linux-9e127fab67e3ec4451696da0c7872fd291b9372b.tar.xz |
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>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/max8660.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/regulator/max8660.c b/drivers/regulator/max8660.c index 4bca54446287..347043a5a9a7 100644 --- a/drivers/regulator/max8660.c +++ b/drivers/regulator/max8660.c @@ -485,7 +485,6 @@ static int max8660_probe(struct i2c_client *client, rdev = devm_regulator_register(&client->dev, &max8660_reg[id], &config); if (IS_ERR(rdev)) { - ret = PTR_ERR(rdev); dev_err(&client->dev, "failed to register %s\n", max8660_reg[id].name); return PTR_ERR(rdev); |