From: Heinrich Schuchardt Date: Sun, 18 Mar 2018 10:52:45 +0000 (+0100) Subject: drivers:power:max77693: remove redundant logical constraint X-Git-Tag: v2018.05~12^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4bf225aa87a11f5d22b22d469e77d005ad441fd8;p=u-boot 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 --- 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; }