summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2019-11-05 00:28:15 +0100
committerPetr Štetiar <ynezz@true.cz>2019-11-14 17:11:34 +0100
commit7736f497d2d9a43cd36526c8d8a12718eff2e6c7 (patch)
tree2f458e7da8eb2cb355684ffe82a42be1d26b273e
parent39093f3b040df895da812e2932b55feeeb1201df (diff)
downloaduci-7736f497d2d9a43cd36526c8d8a12718eff2e6c7.tar.gz
cli: remove unused variable assigment
scan-build from clang version 9 has reported following issue: cli.c:574:8: warning: Although the value stored to 'ret' is used in the enclosing expression, the value is never actually read from 'ret' if ((ret = uci_parse_argument(ctx, input, &str, &argv[i])) != UCI_OK) { ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Petr Štetiar <ynezz@true.cz>
-rw-r--r--cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli.c b/cli.c
index 1ce4d5e..8970f4f 100644
--- a/cli.c
+++ b/cli.c
@@ -571,7 +571,7 @@ static int uci_batch_cmd(void)
return 1;
}
argv[i] = NULL;
- if ((ret = uci_parse_argument(ctx, input, &str, &argv[i])) != UCI_OK) {
+ if (uci_parse_argument(ctx, input, &str, &argv[i]) != UCI_OK) {
cli_perror();
i = 0;
break;