summaryrefslogtreecommitdiff
path: root/fs/smb
diff options
context:
space:
mode:
authorChenXiaoSong <chenxiaosong@kylinos.cn>2024-08-22 08:20:52 +0000
committerSteve French <stfrench@microsoft.com>2024-08-22 09:52:00 -0500
commit0dd771b7d60b8281f10f6721783c60716d22075f (patch)
treeb1598878ab24cb327e20c45da48f9f67a8528a9a /fs/smb
parent4e8771a3666c8f216eefd6bd2fd50121c6c437db (diff)
smb/server: remove useless assignment of 'file_present' in smb2_open()
The variable is already true here. Signed-off-by: ChenXiaoSong <chenxiaosong@kylinos.cn> Acked-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/smb')
-rw-r--r--fs/smb/server/smb2pdu.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/smb/server/smb2pdu.c b/fs/smb/server/smb2pdu.c
index 5d170ab0817d..cd23517d9640 100644
--- a/fs/smb/server/smb2pdu.c
+++ b/fs/smb/server/smb2pdu.c
@@ -3096,7 +3096,6 @@ int smb2_open(struct ksmbd_work *work)
goto err_out;
}
- file_present = true;
idmap = mnt_idmap(path.mnt);
} else {
if (rc != -ENOENT)