From: Jo-Philipp Wich Date: Thu, 15 Mar 2018 17:16:46 +0000 (+0100) Subject: firmware-utils: fix erroneous variable redeclaration X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=677d8df9b8bae64d441e3d4d5afa963dc5088ccb;p=openwrt%2Fstaging%2Fjow.git firmware-utils: fix erroneous variable redeclaration Fixes: 638e2193fe ("tplink-safeloader: add support to split & extract firmwares") Signed-off-by: Jo-Philipp Wich --- diff --git a/tools/firmware-utils/src/tplink-safeloader.c b/tools/firmware-utils/src/tplink-safeloader.c index fab6f05855..3c979f7f86 100644 --- a/tools/firmware-utils/src/tplink-safeloader.c +++ b/tools/firmware-utils/src/tplink-safeloader.c @@ -1417,7 +1417,6 @@ static int add_flash_partition( unsigned long base, unsigned long size) { - int ptr = 0; /* check if the list has a free entry */ for (int ptr=0; ptrname == NULL &&