2021-11-11 09:15:14

by CGEL

[permalink] [raw]
Subject: [PATCH linux-next] ext4: Delete unused statements

From: luo penghao <[email protected]>

The assignment statement is at the end of the function, and
local variables will not be used.

Reported-by: Zeal Robot <[email protected]>
Signed-off-by: luo penghao <[email protected]>
---
fs/ext4/inode.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index 0f06305..642cb76 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -2285,7 +2285,6 @@ static int mpage_process_page(struct mpage_da_data *mpd, struct page *page,
} while (lblk++, (bh = bh->b_this_page) != head);

io_end_vec->size += io_end_size;
- io_end_size = 0;
*map_bh = false;
out:
*m_lblk = lblk;
--
2.15.2




2022-01-05 23:34:51

by Theodore Ts'o

[permalink] [raw]
Subject: Re: [PATCH linux-next] ext4: Delete unused statements

On Thu, Nov 11, 2021 at 09:15:07AM +0000, [email protected] wrote:
> From: luo penghao <[email protected]>
>
> The assignment statement is at the end of the function, and
> local variables will not be used.
>
> Reported-by: Zeal Robot <[email protected]>
> Signed-off-by: luo penghao <[email protected]>

There was a more complete fix-up of this issue that has been applied
from:

https://lore.kernel.org/r/[email protected]

- Ted