From face8ec9ab1bd00fd55188d6e38e8650c38f36fd Mon Sep 17 00:00:00 2001 From: Rajkumar Kanagaraj Date: Mon, 15 Jun 2020 12:18:52 +0100 Subject: [PATCH] Remove unused variable to fix compliation warning --- features/storage/kvstore/conf/kv_config.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/features/storage/kvstore/conf/kv_config.cpp b/features/storage/kvstore/conf/kv_config.cpp index ccaef7cadf..e8ae09b256 100644 --- a/features/storage/kvstore/conf/kv_config.cpp +++ b/features/storage/kvstore/conf/kv_config.cpp @@ -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;