Skip to content

Commit

Permalink
smb/server: remove useless assignment of 'file_present' in smb2_open()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ChenXiaoSong authored and Steve French committed Aug 22, 2024
1 parent 4e8771a commit 0dd771b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/smb/server/smb2pdu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0dd771b

Please sign in to comment.