[PATCH v2 02/12] env: Fix env_get() when returning empty string using env_get_f()

Simon Glass sjg at chromium.org
Sun Nov 14 01:34:31 CET 2021


From: Marek Behún <marek.behun at nic.cz>

The env_get_f() function returns -1 on failure. Returning 0 means that
the variable exists, and is empty string.

Signed-off-by: Marek Behún <marek.behun at nic.cz>
Reviewed-by: Simon Glass <sjg at chromium.org>
---
 env/common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list