aboutsummaryrefslogtreecommitdiffstats
path: root/tools/firmware-utils/src/mkrtn56uimg.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/mkrtn56uimg.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/mkrtn56uimg.c')
-rw-r--r--tools/firmware-utils/src/mkrtn56uimg.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/tools/firmware-utils/src/mkrtn56uimg.c b/tools/firmware-utils/src/mkrtn56uimg.c
index 92aaf314a1..6b72e1e233 100644
--- a/tools/firmware-utils/src/mkrtn56uimg.c
+++ b/tools/firmware-utils/src/mkrtn56uimg.c
@@ -102,7 +102,6 @@ static void
usage(const char *progname, int status)
{
FILE *stream = (status != EXIT_SUCCESS) ? stderr : stdout;
- int i;
fprintf(stream, "Usage: %s [OPTIONS...]\n", progname);
fprintf(stream, "\n"
@@ -116,12 +115,12 @@ usage(const char *progname, int status)
int
process_image(char *progname, char *filename, op_mode_t opmode)
{
- int fd, len;
- void *data, *ptr;
+ int fd;
+ void *ptr;
char namebuf[IH_NMLEN];
struct stat sbuf;
- uint32_t checksum, offset_kernel, offset_sqfs, offset_end,
- offset_sec_header, offset_eb, offset_image_end;
+ uint32_t offset_kernel, offset_sqfs, offset_end,
+ offset_sec_header, offset_eb, offset_image_end;
squashfs_sb_t *sqs;
image_header_t *hdr;