Skip to content

Commit 61a5fdf

Browse files
committedNov 4, 2016
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>
1 parent 44dd5a6 commit 61a5fdf

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed
 

‎op-flasher/flasher_obj.c

-8
Original file line numberDiff line numberDiff line change
@@ -50,8 +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 uint32_t fl_total_size, fl_erase_granule;
54-
static const char *fl_name;
5553
static int32_t ffs_index = -1;
5654

5755
static uint8_t FLASH_OK = 0;
@@ -246,12 +244,6 @@ flash(FlashControl* flash_control,bool bmc_flash, uint32_t address, char* write_
246244
}
247245
}
248246

249-
rc = blocklevel_get_info(bl, &fl_name,
250-
&fl_total_size, &fl_erase_granule);
251-
if(rc) {
252-
fprintf(stderr, "Error %d getting flash info\n", rc);
253-
return FLASH_SETUP_ERROR;
254-
}
255247
if(strcmp(write_file,"")!=0)
256248
{
257249
// If file specified but not size, get size from file

0 commit comments

Comments
 (0)
Please sign in to comment.