Merge pull request #13117 from rajkan01/fix_kvstore_compilation_warning

Fix compliation warnings
pull/12899/head
Martin Kojtal 2020-06-16 13:43:56 +02:00 committed by GitHub
commit 8e9198869f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -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;