mirror of
https://github.com/samba-team/samba.git
synced 2025-03-23 06:50:21 +03:00
s3: smb2: Remove unused code from remove_pending_lock().
SMB2 blocking locks can only have one lock per request, so there can never be any previous locks to remove. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ira Cooper <ira@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
parent
b2a74726ee
commit
508c09c6a0
@ -664,19 +664,6 @@ static void remove_pending_lock(struct smbd_smb2_lock_state *state,
|
||||
blr);
|
||||
TALLOC_FREE(br_lck);
|
||||
}
|
||||
|
||||
/* Remove the locks we already got. */
|
||||
|
||||
for(i = blr->lock_num - 1; i >= 0; i--) {
|
||||
struct smbd_lock_element *e = &state->locks[i];
|
||||
|
||||
do_unlock(blr->fsp->conn->sconn->msg_ctx,
|
||||
blr->fsp,
|
||||
e->smblctx,
|
||||
e->count,
|
||||
e->offset,
|
||||
WINDOWS_LOCK);
|
||||
}
|
||||
}
|
||||
|
||||
/****************************************************************
|
||||
|
Loading…
x
Reference in New Issue
Block a user