diff options
author | Joel Stanley <joel@jms.id.au> | 2016-11-03 12:16:19 +1030 |
---|---|---|
committer | Joel Stanley <joel@jms.id.au> | 2016-11-04 11:08:15 +1030 |
commit | 3881231a01b1cbe9332fb3d0c064975f357d59a2 (patch) | |
tree | 23e125b2690cf97f451fd6500bd393fe67faf995 /op-flasher/flasher_obj.c | |
parent | 61a5fdf09f409830c3ae7b87f933724a879f37a0 (diff) | |
download | talos-skeleton-3881231a01b1cbe9332fb3d0c064975f357d59a2.tar.gz talos-skeleton-3881231a01b1cbe9332fb3d0c064975f357d59a2.zip |
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] https://github.com/open-power/op-build/pull/696#issuecomment-255012092
Change-Id: I302b48213561c4d4490927fa0953c65a52d82c11
Signed-off-by: Joel Stanley <joel@jms.id.au>
Diffstat (limited to 'op-flasher/flasher_obj.c')
-rw-r--r-- | op-flasher/flasher_obj.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/op-flasher/flasher_obj.c b/op-flasher/flasher_obj.c index 8968867..874d21b 100644 --- a/op-flasher/flasher_obj.c +++ b/op-flasher/flasher_obj.c @@ -50,7 +50,6 @@ static uint8_t file_buf[FILE_BUF_SIZE] __aligned(0x1000); static struct blocklevel_device *bl; static struct ffs_handle *ffsh; -static int32_t ffs_index = -1; static uint8_t FLASH_OK = 0; static uint8_t FLASH_ERROR = 0x01; @@ -157,11 +156,6 @@ program_file(FlashControl* flash_control, const char *file, uint32_t start, uint } close(fd); - /* If this is a flash partition, adjust its size */ - if(ffsh && ffs_index >= 0) { - printf("Updating actual size in partition header...\n"); - ffs_update_act_size(ffsh, ffs_index, actual_size); - } return(0); } |