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 5d170ab..cd23517 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)