summaryrefslogtreecommitdiffstats
path: root/op-flasher
diff options
context:
space:
mode:
authorJoel Stanley <joel@jms.id.au>2016-11-03 12:15:05 +1030
committerJoel Stanley <joel@jms.id.au>2016-11-04 11:08:08 +1030
commit61a5fdf09f409830c3ae7b87f933724a879f37a0 (patch)
tree16799be07e40a356c9e3ba568f6318ba21b4c320 /op-flasher
parent44dd5a6ea7141610ffa922e9557c62552010b8a5 (diff)
downloadtalos-skeleton-61a5fdf09f409830c3ae7b87f933724a879f37a0.tar.gz
talos-skeleton-61a5fdf09f409830c3ae7b87f933724a879f37a0.zip
flasher: Remove unused blocklevel_get_info
We retrieve the parameters but don't do anything with them. Change-Id: I5689fb04d6a9f201a6aff6235925b86c77500823 Signed-off-by: Joel Stanley <joel@jms.id.au>
Diffstat (limited to 'op-flasher')
-rw-r--r--op-flasher/flasher_obj.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/op-flasher/flasher_obj.c b/op-flasher/flasher_obj.c
index 747ad0b..8968867 100644
--- a/op-flasher/flasher_obj.c
+++ b/op-flasher/flasher_obj.c
@@ -50,8 +50,6 @@ static uint8_t file_buf[FILE_BUF_SIZE] __aligned(0x1000);
static struct blocklevel_device *bl;
static struct ffs_handle *ffsh;
-static uint32_t fl_total_size, fl_erase_granule;
-static const char *fl_name;
static int32_t ffs_index = -1;
static uint8_t FLASH_OK = 0;
@@ -246,12 +244,6 @@ flash(FlashControl* flash_control,bool bmc_flash, uint32_t address, char* write_
}
}
- rc = blocklevel_get_info(bl, &fl_name,
- &fl_total_size, &fl_erase_granule);
- if(rc) {
- fprintf(stderr, "Error %d getting flash info\n", rc);
- return FLASH_SETUP_ERROR;
- }
if(strcmp(write_file,"")!=0)
{
// If file specified but not size, get size from file
OpenPOWER on IntegriCloud