From fd4e3280e50983aa4d646f2c8fc93b38cc1dddf9 Mon Sep 17 00:00:00 2001 From: Andreas Fenkart Date: Sat, 16 Jul 2016 17:06:13 +0200 Subject: tools/env: kernel-doc for fw_printenv, fw_getenv and fw_parse_script there are two groups of functions: - application ready tools: fw_setenv/fw_getenv/fw_parse_script these are used, when creating a single binary containing multiple tools (busybox like) - file access like: open/read/write/close above functions are implemented on top of these. applications can use those to modify several variables without creating a temporary batch script file tested with "./scripts/kernel-doc -html -v tools/env/fw_env.h" Reviewed-by: Simon Glass Signed-off-by: Andreas Fenkart --- tools/env/fw_env.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/env/fw_env.c') diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c index be338a5ba9..1dad1ce547 100644 --- a/tools/env/fw_env.c +++ b/tools/env/fw_env.c @@ -484,7 +484,7 @@ int fw_setenv(int argc, char *argv[], struct env_opts *opts) valc = argc - 1; if (env_flags_validate_env_set_params(name, valv, valc) < 0) - return 1; + return -1; len = 0; for (i = 0; i < valc; ++i) { -- cgit v1.2.3