From 7736f497d2d9a43cd36526c8d8a12718eff2e6c7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Petr=20=C5=A0tetiar?= Date: Tue, 5 Nov 2019 00:28:15 +0100 Subject: [PATCH] cli: remove unused variable assigment MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.25.1