aboutsummaryrefslogtreecommitdiffstats
path: root/tools/firmware-utils/src/mkzynfw.c
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2021-04-09 07:38:46 +0200
committerRafał Miłecki <rafal@milecki.pl>2021-04-09 10:46:15 +0200
commit7c01e2bac1c2df1e10658b81e903fbd687c1a56b (patch)
treea39b400e7e2a6f26ef27ecd1368618e1aee4a979 /tools/firmware-utils/src/mkzynfw.c
parente65b633a5b86928a00c5fe3b691144b351fe32cd (diff)
downloadupstream-7c01e2bac1c2df1e10658b81e903fbd687c1a56b.tar.gz
upstream-7c01e2bac1c2df1e10658b81e903fbd687c1a56b.tar.bz2
upstream-7c01e2bac1c2df1e10658b81e903fbd687c1a56b.zip
firmware-utils: fix unused variable warnings
This fixes warnings from the: 1. -Wunused-variable 2. -Wunused-but-set-variable Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'tools/firmware-utils/src/mkzynfw.c')
-rw-r--r--tools/firmware-utils/src/mkzynfw.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/firmware-utils/src/mkzynfw.c b/tools/firmware-utils/src/mkzynfw.c
index ccbabfe7f2..2cd769de2f 100644
--- a/tools/firmware-utils/src/mkzynfw.c
+++ b/tools/firmware-utils/src/mkzynfw.c
@@ -922,7 +922,6 @@ parse_opt_block(char ch, char *arg)
{
char buf[MAX_ARG_LEN];
char *argv[MAX_ARG_COUNT];
- int argc;
char *p;
struct fw_block *block;
int i;
@@ -951,7 +950,7 @@ parse_opt_block(char ch, char *arg)
break;
}
- argc = parse_arg(arg, buf, argv);
+ parse_arg(arg, buf, argv);
i = 0;
p = argv[i++];