[PATCH v2 09/12] env: Change return behaviour of env_set_default_vars()

Simon Glass sjg at chromium.org
Fri Nov 5 03:02:30 CET 2021


On Wed, 3 Nov 2021 at 17:23, Marek Behún <kabel at kernel.org> wrote:
>
> From: Marek Behún <marek.behun at nic.cz>
>
> The env_set_default_vars() function does not document return value and
> behaves differently from other env_* functions.
>
> Change the return value to return 0 on success and -ve on error.
>
> Signed-off-by: Marek Behún <marek.behun at nic.cz>
> ---
>  env/common.c  | 9 ++++++---
>  include/env.h | 1 +
>  2 files changed, 7 insertions(+), 3 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list