summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/smbd/open.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index fac3925b10..70687ff580 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -628,7 +628,7 @@ static BOOL is_delete_request(files_struct *fsp) {
static BOOL delay_for_oplocks(struct share_mode_lock *lck, files_struct *fsp)
{
- int i, num_level2;
+ int i;
struct share_mode_entry *exclusive = NULL;
BOOL delay_it = False;
BOOL have_level2 = False;
@@ -638,8 +638,6 @@ static BOOL delay_for_oplocks(struct share_mode_lock *lck, files_struct *fsp)
return False;
}
- num_level2 = 0;
-
if (lck->num_share_modes == 0) {
/* No files open at all: Directly grant whatever the client
* wants. */