[openwrt/openwrt] firmware-utils: fix erroneous variable redeclaration

LEDE Commits lede-commits at lists.infradead.org
Thu Mar 15 10:17:56 PDT 2018


jow pushed a commit to openwrt/openwrt.git, branch master:
https://git.lede-project.org/677d8df9b8bae64d441e3d4d5afa963dc5088ccb

commit 677d8df9b8bae64d441e3d4d5afa963dc5088ccb
Author: Jo-Philipp Wich <jo at mein.io>
AuthorDate: Thu Mar 15 18:16:46 2018 +0100

    firmware-utils: fix erroneous variable redeclaration
    
    Fixes: 638e2193fe ("tplink-safeloader: add support to split & extract firmwares")
    Signed-off-by: Jo-Philipp Wich <jo at mein.io>
---
 tools/firmware-utils/src/tplink-safeloader.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/tools/firmware-utils/src/tplink-safeloader.c b/tools/firmware-utils/src/tplink-safeloader.c
index fab6f05..3c979f7 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 &&



More information about the lede-commits mailing list