[PATCH 3/8] smb/server: remove useless variable assignment in smb2_open()

chenxiaosong@chenxiaosong.com posted 8 patches 1 year, 5 months ago
There is a newer version of this series
[PATCH 3/8] smb/server: remove useless variable assignment in smb2_open()
Posted by chenxiaosong@chenxiaosong.com 1 year, 5 months ago
From: ChenXiaoSong <chenxiaosong@kylinos.cn>

The variable is already true here.

Signed-off-by: ChenXiaoSong <chenxiaosong@chenxiaosong.com>
---
 fs/smb/server/smb2pdu.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/fs/smb/server/smb2pdu.c b/fs/smb/server/smb2pdu.c
index 119c1ba5f255..4e87bbac2662 100644
--- a/fs/smb/server/smb2pdu.c
+++ b/fs/smb/server/smb2pdu.c
@@ -3100,7 +3100,6 @@ int smb2_open(struct ksmbd_work *work)
 			goto err_out;
 		}
 
-		file_present = true;
 		idmap = mnt_idmap(path.mnt);
 	} else {
 		if (rc != -ENOENT)
-- 
2.34.1
Re: [PATCH 3/8] smb/server: remove useless variable assignment in smb2_open()
Posted by Namjae Jeon 1 year, 5 months ago
On Tue, Aug 20, 2024 at 11:35 PM <chenxiaosong@chenxiaosong.com> wrote:
>
> From: ChenXiaoSong <chenxiaosong@kylinos.cn>
>
> The variable is already true here.
>
> Signed-off-by: ChenXiaoSong <chenxiaosong@chenxiaosong.com>
Looks good.
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Thanks.