diff options
author | Volker Lendecke <vl@samba.org> | 2018-02-07 11:14:31 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2018-02-13 00:26:43 +0100 |
commit | 5fdc62b2369b8463940629dc47c2768f0bcfc29d (patch) | |
tree | 3ef69e8c5dcd3bec67172d3f5cb93b4c8f58bf0d /source3 | |
parent | bab8bf7acb71bc54c258c29e7392927afb8b0709 (diff) | |
download | samba-5fdc62b2369b8463940629dc47c2768f0bcfc29d.tar.gz |
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 <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/locking/locking.c | 3 |
1 files changed, 0 insertions, 3 deletions
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; } |