From: Rafał Miłecki Date: Fri, 23 Feb 2024 06:18:36 +0000 (+0100) Subject: srec2bin: drop unused "dum" variable X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=224d497dd94f94852ee0a9b9e506aa42451ccfbb;p=project%2Ffirmware-utils.git srec2bin: drop unused "dum" variable This fixes: src/srec2bin.c: In function ‘checksum’: src/srec2bin.c:297:7: warning: variable ‘dum’ set but not used [-Wunused-but-set-variable] int dum; ^~~ Signed-off-by: Rafał Miłecki --- diff --git a/src/srec2bin.c b/src/srec2bin.c index ad4222d..9a88909 100644 --- a/src/srec2bin.c +++ b/src/srec2bin.c @@ -294,7 +294,6 @@ int checksum(char *cp,int count) { char *scp; int cksum; - int dum; scp=cp; while(*scp) @@ -309,8 +308,6 @@ int checksum(char *cp,int count) while(count) { cksum += gh(scp,2); - if (count == 2) - dum = ~cksum; scp += 2; count--; }