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

Commit a040750a authored by Eric Biggers's avatar Eric Biggers Committed by Paul Lawrence
Browse files

ANDROID: Incremental fs: Fix dangling else



Fix a compiler warning:

    fs/incfs/data_mgmt.c: In function ‘incfs_get_filled_blocks’:
    fs/incfs/data_mgmt.c:768:6: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wdangling-else]
      768 |   if (is_data_block_present(&dfb))
          |      ^

Fixes: 9cbdd375f644 ("ANDROID: Incremental fs: Fix filled block count from get filled blocks")
Change-Id: I5a331442155443c6f67e33f1bbaf5deae84a644b
Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
parent 45598888
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -765,11 +765,12 @@ int incfs_get_filled_blocks(struct data_file *df,

		convert_data_file_block(bme + i, &dfb);

		if (is_data_block_present(&dfb))
		if (is_data_block_present(&dfb)) {
			if (arg->index_out >= df->df_data_block_count)
				++hash_blocks_filled;
			else
				++data_blocks_filled;
		}

		if (is_data_block_present(&dfb) == in_range)
			continue;