ソースを参照

firmware-utils: fix erroneous variable redeclaration

Fixes: 638e2193fe ("tplink-safeloader: add support to split & extract firmwares")
Signed-off-by: Jo-Philipp Wich <[email protected]>
Jo-Philipp Wich 7 年 前
コミット
677d8df9b8
1 ファイル変更0 行追加1 行削除
  1. 0 1
      tools/firmware-utils/src/tplink-safeloader.c

+ 0 - 1
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 &&