s3: smbd: Remove lock_flav argument from smbd_smb1_do_locks_send().
authorJeremy Allison <jra@samba.org>
Wed, 17 Nov 2021 00:41:09 +0000 (16:41 -0800)
committerNoel Power <npower@samba.org>
Thu, 6 Jan 2022 15:11:38 +0000 (15:11 +0000)
commitb03e0da5288667933d69b8a162534cdec8bc9b25
treebab80ab3fe29d495745e3d22f6b88d17ef1f0582
parentc1d5993489472ac857f83729c901004f26866d6f
s3: smbd: Remove lock_flav argument from smbd_smb1_do_locks_send().

And also inside struct smbd_smb1_do_locks_state.
All calls to this always (a) have one or more locks of the same type.
(the setup for smbd_smb1_do_locks_send() ensures there is always
at least one lock) and (b) always set locks[0].lock_flav correctly before calling.

lock_flav is thus a redundent argument. Removing it means
we can never drift out of sync with the lock_flav element
in the passed in locks array.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
source3/smbd/blocking.c
source3/smbd/proto.h
source3/smbd/reply.c
source3/smbd/trans2.c