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 <[email protected]>
Signed-off-by: Namjae Jeon <[email protected]>
  • Loading branch information
ChenXiaoSong authored and namjaejeon committed Oct 13, 2024
1 parent 684bcb8 commit f66576e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion smb2pdu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f66576e

Please sign in to comment.