Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 829141cd authored by Shaju Mathew's avatar Shaju Mathew
Browse files

Removed unused counter.

Test: Treehugger
Change-Id: I432ad0335f97604b9ca01a7fbbea541534badc27
parent 39c4a124
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -182,7 +182,7 @@ static inline IncFsSize verityTreeSizeForFile(IncFsSize fileSize) {

    auto block_count = 1 + (fileSize - 1) / INCFS_DATA_FILE_BLOCK_SIZE;
    auto hash_block_count = block_count;
    for (auto i = 0; hash_block_count > 1; i++) {
    while (hash_block_count > 1) {
        hash_block_count = (hash_block_count + hash_per_block - 1) / hash_per_block;
        total_tree_block_count += hash_block_count;
    }