firmware-utils: fix erroneous variable redeclaration
[openwrt/staging/lynxis.git] / tools / firmware-utils / src / tplink-safeloader.c
index fab6f05855c6c27485fb991bc49202bc79fa39bd..3c979f7f86d385ffd2bca5d4cf7f87001815cc89 100644 (file)
@@ -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 &&