[U-Boot] [PATCH 1/1] drivers:power:max77693: remove redundant logical constraint
Heinrich Schuchardt
xypron.glpk at gmx.de
Sun Mar 18 10:52:45 UTC 2018
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 at gmx.de>
---
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.16.2
More information about the U-Boot
mailing list