smbd: Remove unused "msg_ctx" from brl_lock_posix
[samba.git] / source3 / locking / brlock.c
index f3ef909563972a8f18076e11eafa02e02a92db6d..743360a5a19665f228214b1e10ebdc4ffacccc09 100644 (file)
@@ -346,7 +346,7 @@ static int lock_compare(const struct lock_struct *lck1,
 ****************************************************************************/
 
 NTSTATUS brl_lock_windows_default(struct byte_range_lock *br_lck,
-    struct lock_struct *plock, bool blocking_lock)
+                                 struct lock_struct *plock)
 {
        unsigned int i;
        files_struct *fsp = br_lck->fsp;
@@ -723,8 +723,7 @@ OR
  We must cope with range splits and merges.
 ****************************************************************************/
 
-static NTSTATUS brl_lock_posix(struct messaging_context *msg_ctx,
-                              struct byte_range_lock *br_lck,
+static NTSTATUS brl_lock_posix(struct byte_range_lock *br_lck,
                               struct lock_struct *plock)
 {
        unsigned int i, count, posix_count;
@@ -939,7 +938,7 @@ NTSTATUS brl_lock(struct messaging_context *msg_ctx,
                ret = SMB_VFS_BRL_LOCK_WINDOWS(
                        br_lck->fsp->conn, br_lck, &lock);
        } else {
-               ret = brl_lock_posix(msg_ctx, br_lck, &lock);
+               ret = brl_lock_posix(br_lck, &lock);
        }
 
 #if ZERO_ZERO