From 4bf225aa87a11f5d22b22d469e77d005ad441fd8 Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Sun, 18 Mar 2018 11:52:45 +0100 Subject: [PATCH] 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 --- drivers/power/mfd/fg_max77693.c | 2 -- 1 file changed, 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; } -- 2.39.5