summaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2018-03-18 11:52:45 +0100
committerJaehoon Chung <jh80.chung@samsung.com>2018-05-02 10:57:43 +0900
commit4bf225aa87a11f5d22b22d469e77d005ad441fd8 (patch)
tree35a3fa92e3ba62e9d2ff14409d91e21ec34a9ea5 /drivers/power
parent4781921630f9f2dd1165cc1e79494893e8e9bd3c (diff)
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>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/mfd/fg_max77693.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/power/mfd/fg_max77693.c b/drivers/power/mfd/fg_max77693.c
index df1550816e..a1407318ef 100644
--- a/drivers/power/mfd/fg_max77693.c
+++ b/drivers/power/mfd/fg_max77693.c
@@ -60,8 +60,6 @@ static int power_update_battery(struct pmic *p, struct pmic *bat)
return ret;
max77693_get_vcell(&pb->bat->voltage_uV);
- if (ret)
- return ret;
return 0;
}