diff mbox series

[v2,03/12] smb/server: remove useless assignment of 'file_present' in smb2_open()

Message ID 20240822082101.391272-4-chenxiaosong@chenxiaosong.com (mailing list archive)
State New, archived
Headers show
Series smb: fix some bugs, move duplicate definitions to common header file, and some small cleanups | expand

Commit Message

ChenXiaoSong Aug. 22, 2024, 8:20 a.m. UTC
From: ChenXiaoSong <chenxiaosong@kylinos.cn>

The variable is already true here.

Signed-off-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
---
 fs/smb/server/smb2pdu.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Namjae Jeon Aug. 22, 2024, 11:49 a.m. UTC | #1
On Thu, Aug 22, 2024 at 5:22 PM <chenxiaosong@chenxiaosong.com> wrote:
>
> From: ChenXiaoSong <chenxiaosong@kylinos.cn>
>
> The variable is already true here.
>
> Signed-off-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
> Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Applied it to #ksmbd-for-next-next.
Thanks.
diff mbox series

Patch

diff --git a/fs/smb/server/smb2pdu.c b/fs/smb/server/smb2pdu.c
index 154bc27d1db8..db84c7d0c278 100644
--- a/fs/smb/server/smb2pdu.c
+++ b/fs/smb/server/smb2pdu.c
@@ -3093,7 +3093,6 @@  int smb2_open(struct ksmbd_work *work)
 			goto err_out;
 		}
 
-		file_present = true;
 		idmap = mnt_idmap(path.mnt);
 	} else {
 		if (rc != -ENOENT)