aboutsummaryrefslogtreecommitdiffstats
path: root/tools/firmware-utils/src/tplink-safeloader.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2018-03-15 18:16:46 +0100
committerJo-Philipp Wich <jo@mein.io>2018-03-15 18:17:37 +0100
commit677d8df9b8bae64d441e3d4d5afa963dc5088ccb (patch)
treedcb7bfee510984babfb517924fbcf5ac68069a4b /tools/firmware-utils/src/tplink-safeloader.c
parent068ba612db41aad60110410997fcebdbb2a49269 (diff)
downloadupstream-677d8df9b8bae64d441e3d4d5afa963dc5088ccb.tar.gz
upstream-677d8df9b8bae64d441e3d4d5afa963dc5088ccb.tar.bz2
upstream-677d8df9b8bae64d441e3d4d5afa963dc5088ccb.zip
firmware-utils: fix erroneous variable redeclaration
Fixes: 638e2193fe ("tplink-safeloader: add support to split & extract firmwares") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'tools/firmware-utils/src/tplink-safeloader.c')
-rw-r--r--tools/firmware-utils/src/tplink-safeloader.c1
1 files changed, 0 insertions, 1 deletions
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; ptr<max_entries; ptr++, part_list++) {
if (part_list->name == NULL &&