diff mbox series

[linux-next] ext4: Delete unused statements

Message ID 20211111091507.159465-1-luo.penghao@zte.com.cn
State Rejected
Headers show
Series [linux-next] ext4: Delete unused statements | expand

Commit Message

CGEL Nov. 11, 2021, 9:15 a.m. UTC
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(-)

Comments

Theodore Ts'o Jan. 5, 2022, 11:34 p.m. UTC | #1
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
diff mbox series

Patch

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;