[OpenWrt-Devel] [PATCH uci 15/18] cli: remove unused variable assigment
Petr Štetiar
ynezz at true.cz
Mon Nov 4 19:36:54 EST 2019
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 at true.cz>
---
cli.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cli.c b/cli.c
index 1ce4d5ed1d33..8970f4f0b8ce 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;
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list