mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 14:04:54 +02:00
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: 9cbdd375f6 ("ANDROID: Incremental fs: Fix filled block count from get filled blocks")
Change-Id: I5a331442155443c6f67e33f1bbaf5deae84a644b
Signed-off-by: Eric Biggers <ebiggers@google.com>
This commit is contained in:
parent
79581f9ee7
commit
87cca254c9
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user