From 5fdc62b2369b8463940629dc47c2768f0bcfc29d Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 7 Feb 2018 11:14:31 +0100 Subject: [PATCH] smbd: Remove a redundant check The file ids in all share modes match the share_mode_data's one We don't have a paranoia check for this, but the share mode is per inode. Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/locking/locking.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/source3/locking/locking.c b/source3/locking/locking.c index 2b5c7c7885ff..738b997f644a 100644 --- a/source3/locking/locking.c +++ b/source3/locking/locking.c @@ -875,9 +875,6 @@ struct share_mode_entry *find_share_mode_entry( if (!serverid_equal(&pid, &e->pid)) { continue; } - if (!file_id_equal(&fsp->file_id, &e->id)) { - continue; - } if (fsp->fh->gen_id != e->share_file_id) { continue; } -- 2.34.1