s3:smbd: remove unused arg oplock_request
authorRalph Boehme <slow@samba.org>
Wed, 7 Oct 2015 12:28:32 +0000 (14:28 +0200)
committerJeremy Allison <jra@samba.org>
Mon, 12 Oct 2015 20:13:19 +0000 (22:13 +0200)
The use of oplock_request in calculate_open_access_flags() was removed
in 196da5925.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/open.c

index 162e8347b9405aa4806a4cd6fec6e1ca470130d5..ef1505dd35408ad3d63bb12fff69f5d3eafd6412 100644 (file)
@@ -2354,7 +2354,6 @@ static int disposition_to_open_flags(uint32_t create_disposition)
 }
 
 static int calculate_open_access_flags(uint32_t access_mask,
-                                      int oplock_request,
                                       uint32_t private_flags)
 {
        bool need_write, need_read;
@@ -2641,8 +2640,7 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn,
         * mean the same thing under DOS and Unix.
         */
 
-       flags = calculate_open_access_flags(access_mask, oplock_request,
-                                           private_flags);
+       flags = calculate_open_access_flags(access_mask, private_flags);
 
        /*
         * Currently we only look at FILE_WRITE_THROUGH for create options.