[U-Boot] [PATCH] common: env: remove superfluous assignment
Heinrich Schuchardt
xypron.glpk at gmx.de
Mon May 8 19:43:43 UTC 2017
The value assigned to variable 'value' is never used.
The problem was indicated by clang scan-build.
Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
---
cmd/nvedit.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/cmd/nvedit.c b/cmd/nvedit.c
index 9ca5cb58a7..8f4e6bbe62 100644
--- a/cmd/nvedit.c
+++ b/cmd/nvedit.c
@@ -234,7 +234,6 @@ static int _do_env_set(int flag, int argc, char * const argv[], int env_flag)
}
debug("Final value for argc=%d\n", argc);
name = argv[1];
- value = argv[2];
if (strchr(name, '=')) {
printf("## Error: illegal character '='"
--
2.11.0
More information about the U-Boot
mailing list