]> git.sur5r.net Git - u-boot/commitdiff
drivers:power:max77693: remove redundant logical constraint
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 18 Mar 2018 10:52:45 +0000 (11:52 +0100)
committerJaehoon Chung <jh80.chung@samsung.com>
Wed, 2 May 2018 01:57:43 +0000 (10:57 +0900)
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>
drivers/power/mfd/fg_max77693.c

index df1550816ec69f7c776a166647915874f68546a5..a1407318effa8cf7dbbecf429158bb1e1093a663 100644 (file)
@@ -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;
 }