diff options
author | Jeremy Allison <jra@samba.org> | 2021-11-16 16:56:02 -0800 |
---|---|---|
committer | Noel Power <npower@samba.org> | 2022-01-06 15:11:38 +0000 |
commit | 07c74582c0f9fd74d00a667879787cdde1de3fb3 (patch) | |
tree | ddf588b03e4d3f255b50b2b0ddd740ed70dfd03a /source3/smbd/blocking.c | |
parent | 8ec30dade11c85b6f6b55a3ab564167f79ba3b0f (diff) | |
download | samba-07c74582c0f9fd74d00a667879787cdde1de3fb3.tar.gz |
s3: smbd: Remove lock_flav argument from smbd_smb1_brl_finish_by_lock().
We lookup the lock array from the state stored in the passed-in req
and all the locks in an array are always the same flavour, so this
isn't needed.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
Diffstat (limited to 'source3/smbd/blocking.c')
-rw-r--r-- | source3/smbd/blocking.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/smbd/blocking.c b/source3/smbd/blocking.c index f78e3502b8b..10d657bb838 100644 --- a/source3/smbd/blocking.c +++ b/source3/smbd/blocking.c @@ -687,7 +687,6 @@ void smbd_smb1_brl_finish_by_req(struct tevent_req *req, NTSTATUS status) bool smbd_smb1_brl_finish_by_lock( struct files_struct *fsp, bool large_offset, - enum brl_flavour lock_flav, struct smbd_lock_element lock, NTSTATUS finish_status) { @@ -705,8 +704,7 @@ bool smbd_smb1_brl_finish_by_lock( DBG_DEBUG("i=%zu, req=%p\n", i, req); - if ((state->large_offset != large_offset) || - (state->locks[0].lock_flav != lock_flav)) { + if (state->large_offset != large_offset) { continue; } |