smbd: Remove a redundant check
authorVolker Lendecke <vl@samba.org>
Wed, 7 Feb 2018 10:14:31 +0000 (11:14 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 12 Feb 2018 23:26:43 +0000 (00:26 +0100)
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 <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/locking/locking.c

index 2b5c7c7885ffc4895b0bc56e936a4396e0b16ede..738b997f644a4e9e5cbd754667dcdfa00108aea0 100644 (file)
@@ -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;
                }