diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2022-03-01 13:16:44 +0100 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2022-03-03 06:01:31 +0100 |
commit | 6b71b69dd98b197deea0806417e88308e0876a10 (patch) | |
tree | d82154a6fbe46b3cf7b5a6e61faef81c8ef2b938 /fs/ext4/extents.c | |
parent | ext4: fix underflow in ext4_max_bitmap_size() (diff) | |
download | linux-6b71b69dd98b197deea0806417e88308e0876a10.tar.xz linux-6b71b69dd98b197deea0806417e88308e0876a10.zip |
ext4: remove redundant assignment to variable split_flag1
Variable split_flag1 is being assigned a value that is never read,
it is being re-assigned a new value in the following code block.
The assignment is redundant and can be removed.
Cleans up clang scan build warning:
fs/ext4/extents.c:3371:2: warning: Value stored to 'split_flag1' is
never read [deadcode.DeadStores]
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20220301121644.997833-1-colin.i.king@gmail.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/extents.c')
-rw-r--r-- | fs/ext4/extents.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index c0f3f83e0c1b..0d98cf402282 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c @@ -3368,7 +3368,6 @@ static int ext4_split_extent(handle_t *handle, return -EFSCORRUPTED; } unwritten = ext4_ext_is_unwritten(ex); - split_flag1 = 0; if (map->m_lblk >= ee_block) { split_flag1 = split_flag & EXT4_EXT_DATA_VALID2; |