Skip to content
Snippets Groups Projects
Commit 4bf225aa authored by Heinrich Schuchardt's avatar Heinrich Schuchardt Committed by Jaehoon Chung
Browse files

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: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
parent 47819216
No related branches found
No related tags found
No related merge requests found
...@@ -60,8 +60,6 @@ static int power_update_battery(struct pmic *p, struct pmic *bat) ...@@ -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;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment