mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #13117 from rajkan01/fix_kvstore_compilation_warning
Fix compliation warningspull/12899/head
commit
8e9198869f
|
@ -186,9 +186,7 @@ int _calculate_blocksize_match_tdbstore(BlockDevice *bd)
|
|||
{
|
||||
bd_size_t size = bd->size();
|
||||
bd_size_t erase_size = bd->get_erase_size();
|
||||
bd_size_t page_size = bd->get_program_size();
|
||||
bd_size_t number_of_sector = size / erase_size;
|
||||
bd_size_t number_of_page = size / page_size;
|
||||
if (number_of_sector < STORE_SECTORS) {
|
||||
tr_error("KV Config: There are less than %d sectors - TDBStore will not work.", STORE_SECTORS);
|
||||
return -1;
|
||||
|
|
Loading…
Reference in New Issue