On 03/18/2018 07:52 PM, Heinrich Schuchardt wrote: > As ret is not set when calling max77693_get_vcell() there is no > need to check ret again. > > Signed-off-by: Heinrich Schuchardt <[email protected]>
Sorry for late. Applied to u-boot-mmc. Thanks! Best Regards, Jaehoon Chung > --- > 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; > } > _______________________________________________ U-Boot mailing list [email protected] https://lists.denx.de/listinfo/u-boot

