smbd: Remove a redundant check
[ambi/samba-autobuild/.git] / 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;
                }