flash_sector_t -> struct flash_sector
Remove misleading typedef and redundant suffix from struct flash_sector.
This commit is contained in:
@@ -205,7 +205,7 @@ static int str9xpec_build_block_list(struct flash_bank_s *bank)
|
||||
num_sectors = b0_sectors + b1_sectors;
|
||||
|
||||
bank->num_sectors = num_sectors;
|
||||
bank->sectors = malloc(sizeof(flash_sector_t) * num_sectors);
|
||||
bank->sectors = malloc(sizeof(struct flash_sector) * num_sectors);
|
||||
str9xpec_info->sector_bits = malloc(sizeof(uint32_t) * num_sectors);
|
||||
|
||||
num_sectors = 0;
|
||||
|
||||
Reference in New Issue
Block a user