* [PATCH linux-next] ext4: Delete unused statements
@ 2021-11-11 9:15 cgel.zte
2022-01-05 23:34 ` Theodore Ts'o
0 siblings, 1 reply; 2+ messages in thread
From: cgel.zte @ 2021-11-11 9:15 UTC (permalink / raw)
To: Theodore Ts'
Cc: Andreas Dilger, linux-ext4, linux-kernel, luo penghao, Zeal Robot
From: luo penghao <luo.penghao@zte.com.cn>
The assignment statement is at the end of the function, and
local variables will not be used.
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: luo penghao <luo.penghao@zte.com.cn>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH linux-next] ext4: Delete unused statements
2021-11-11 9:15 [PATCH linux-next] ext4: Delete unused statements cgel.zte
@ 2022-01-05 23:34 ` Theodore Ts'o
0 siblings, 0 replies; 2+ messages in thread
From: Theodore Ts'o @ 2022-01-05 23:34 UTC (permalink / raw)
To: cgel.zte
Cc: Andreas Dilger, linux-ext4, linux-kernel, luo penghao, Zeal Robot
On Thu, Nov 11, 2021 at 09:15:07AM +0000, cgel.zte@gmail.com wrote:
> From: luo penghao <luo.penghao@zte.com.cn>
>
> The assignment statement is at the end of the function, and
> local variables will not be used.
>
> Reported-by: Zeal Robot <zealci@zte.com.cn>
> Signed-off-by: luo penghao <luo.penghao@zte.com.cn>
There was a more complete fix-up of this issue that has been applied
from:
https://lore.kernel.org/r/20211025221803.3326-1-nghialm78@gmail.com
- Ted
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-01-05 23:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-11 9:15 [PATCH linux-next] ext4: Delete unused statements cgel.zte
2022-01-05 23:34 ` Theodore Ts'o
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).