mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-18 12:45:25 +00:00
drivers:power:max77693: remove redundant logical constraint
As ret is not set when calling max77693_get_vcell() there is no need to check ret again. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
4781921630
commit
4bf225aa87
1 changed files with 0 additions and 2 deletions
|
@ -60,8 +60,6 @@ static int power_update_battery(struct pmic *p, struct pmic *bat)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
max77693_get_vcell(&pb->bat->voltage_uV);
|
max77693_get_vcell(&pb->bat->voltage_uV);
|
||||||
if (ret)
|
|
||||||
return ret;
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue