]> www.infradead.org Git - users/hch/configfs.git/commitdiff
smb/server: remove useless assignment of 'file_present' in smb2_open()
authorChenXiaoSong <chenxiaosong@kylinos.cn>
Thu, 22 Aug 2024 08:20:52 +0000 (08:20 +0000)
committerSteve French <stfrench@microsoft.com>
Thu, 22 Aug 2024 14:52:00 +0000 (09:52 -0500)
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>
fs/smb/server/smb2pdu.c

index 5d170ab0817d5afc6b8ca4378353ce7107fe74f5..cd23517d964069055db5120e24c38cf147bac5ff 100644 (file)
@@ -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)