[U-Boot] [U-Boot, 1/1] drivers:power:max77693: remove redundant logical constraint
Jaehoon Chung
jh80.chung at samsung.com
Thu Apr 26 10:30:46 UTC 2018
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 <xypron.glpk at gmx.de>
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;
> }
>
More information about the U-Boot
mailing list