From 184cc138b6fcd832fd084a919d65ad2f273bf5eb Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 3 Sep 2013 13:57:11 +0000 Subject: smbd: Remove separate oplock_type parameter from set_file_oplock This avoids the question where it could happen that something else but fsp->oplock_type might be useful as an argument here. Signed-off-by: Volker Lendecke Reviewed-by: David Disseldorp --- source3/smbd/open.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/smbd/open.c') diff --git a/source3/smbd/open.c b/source3/smbd/open.c index c33a4cf357..4db673acd3 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -2703,7 +2703,7 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn, * file structs. */ - status = set_file_oplock(fsp, fsp->oplock_type); + status = set_file_oplock(fsp); if (!NT_STATUS_IS_OK(status)) { /* * Could not get the kernel oplock -- cgit