mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-12-10 07:20:56 +00:00
max17042_battery: Fix missing verify_model_lock() return value check
The second error check is unreachable because the lock function isn't assigned to ret. Signed-off-by: Alan Cox <alan@linux.intel.com> Acked-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com> Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
This commit is contained in:
parent
8511748ba1
commit
a879f19fe7
@ -572,7 +572,8 @@ static int max17042_init_chip(struct max17042_chip *chip)
|
|||||||
__func__);
|
__func__);
|
||||||
return -EIO;
|
return -EIO;
|
||||||
}
|
}
|
||||||
max17042_verify_model_lock(chip);
|
|
||||||
|
ret = max17042_verify_model_lock(chip);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
dev_err(&chip->client->dev, "%s lock verify failed\n",
|
dev_err(&chip->client->dev, "%s lock verify failed\n",
|
||||||
__func__);
|
__func__);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user