Skip to content

Commit effc5b3

Browse files
Nghia Letytso
authored andcommitted
ext4: remove useless resetting io_end_size in mpage_process_page()
The command "make clang-analyzer" detects dead stores in mpage_process_page() function. Do not reset io_end_size to 0 in the current paths, as the function exits on those paths without further using io_end_size. Signed-off-by: Nghia Le <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
1 parent 4a69aec commit effc5b3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

fs/ext4/inode.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2241,7 +2241,6 @@ static int mpage_process_page(struct mpage_da_data *mpd, struct page *page,
22412241
mpd->map.m_len = 0;
22422242
mpd->map.m_flags = 0;
22432243
io_end_vec->size += io_end_size;
2244-
io_end_size = 0;
22452244

22462245
err = mpage_process_page_bufs(mpd, head, bh, lblk);
22472246
if (err > 0)
@@ -2266,7 +2265,6 @@ static int mpage_process_page(struct mpage_da_data *mpd, struct page *page,
22662265
} while (lblk++, (bh = bh->b_this_page) != head);
22672266

22682267
io_end_vec->size += io_end_size;
2269-
io_end_size = 0;
22702268
*map_bh = false;
22712269
out:
22722270
*m_lblk = lblk;

0 commit comments

Comments
 (0)