Skip to content

Commit face8ec

Browse files
committed
Remove unused variable to fix compliation warning
1 parent 8b70dfe commit face8ec

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

features/storage/kvstore/conf/kv_config.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,7 @@ int _calculate_blocksize_match_tdbstore(BlockDevice *bd)
186186
{
187187
bd_size_t size = bd->size();
188188
bd_size_t erase_size = bd->get_erase_size();
189-
bd_size_t page_size = bd->get_program_size();
190189
bd_size_t number_of_sector = size / erase_size;
191-
bd_size_t number_of_page = size / page_size;
192190
if (number_of_sector < STORE_SECTORS) {
193191
tr_error("KV Config: There are less than %d sectors - TDBStore will not work.", STORE_SECTORS);
194192
return -1;

0 commit comments

Comments
 (0)