Re: [PATCH] ext2: Remove useless reset code

2019-01-28 Thread Jan Kara
On Fri 25-01-19 22:01:04, Liu Xiang wrote: > If ((char *)de == dir_end) is true, the name_len will not be used > in the subsequent routine. So the reset code can be removed. > > Signed-off-by: Liu Xiang Thanks for the patch. I agree with your analysis but I prefer to keep the code as is - it pre

[PATCH] ext2: Remove useless reset code

2019-01-25 Thread Liu Xiang
If ((char *)de == dir_end) is true, the name_len will not be used in the subsequent routine. So the reset code can be removed. Signed-off-by: Liu Xiang --- fs/ext2/dir.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/ext2/dir.c b/fs/ext2/dir.c index 3b8114d..5ec497f 100644 --- a/fs/ext2/d