From f66576e2775d9893df70865e39239b3f7983b5de Mon Sep 17 00:00:00 2001 From: ChenXiaoSong Date: Sun, 13 Oct 2024 21:49:42 +0900 Subject: [PATCH] smb/server: remove useless assignment of 'file_present' in smb2_open() The variable is already true here. Signed-off-by: ChenXiaoSong Signed-off-by: Namjae Jeon --- smb2pdu.c | 1 - 1 file changed, 1 deletion(-) diff --git a/smb2pdu.c b/smb2pdu.c index f494be81..6f45ae80 100644 --- a/smb2pdu.c +++ b/smb2pdu.c @@ -3213,7 +3213,6 @@ int smb2_open(struct ksmbd_work *work) goto err_out; } - file_present = true; #if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 12, 0) #if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 3, 0) idmap = mnt_idmap(path.mnt);