From: Volker Lendecke Date: Wed, 7 Feb 2018 10:14:31 +0000 (+0100) Subject: smbd: Remove a redundant check X-Git-Tag: tevent-0.9.36~127 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5fdc62b2369b8463940629dc47c2768f0bcfc29d;p=thirdparty%2Fsamba.git 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 --- diff --git a/source3/locking/locking.c b/source3/locking/locking.c index 2b5c7c7885f..738b997f644 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; }