Skip to content

Commit 3881231

Browse files
committed
flasher: remove unused ffs_index
ffs_index was used to ensure we updated the ffs header with the actual size. However, the ffs_index was hardcoded to -1 nd never updated, so this cade was never executed. Secondly, recent discussion[1] on the open-power bug tracker suggests that this was never something that should be done. [1] open-power/op-build#696 (comment) Change-Id: I302b48213561c4d4490927fa0953c65a52d82c11 Signed-off-by: Joel Stanley <[email protected]>
1 parent 61a5fdf commit 3881231

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

op-flasher/flasher_obj.c

-6
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ static uint8_t file_buf[FILE_BUF_SIZE] __aligned(0x1000);
5050

5151
static struct blocklevel_device *bl;
5252
static struct ffs_handle *ffsh;
53-
static int32_t ffs_index = -1;
5453

5554
static uint8_t FLASH_OK = 0;
5655
static uint8_t FLASH_ERROR = 0x01;
@@ -157,11 +156,6 @@ program_file(FlashControl* flash_control, const char *file, uint32_t start, uint
157156
}
158157
close(fd);
159158

160-
/* If this is a flash partition, adjust its size */
161-
if(ffsh && ffs_index >= 0) {
162-
printf("Updating actual size in partition header...\n");
163-
ffs_update_act_size(ffsh, ffs_index, actual_size);
164-
}
165159
return(0);
166160
}
167161

0 commit comments

Comments
 (0)