r10943: Unused variable. Bug #3160 from jason@ncac.gwu.edu
authorJeremy Allison <jra@samba.org>
Wed, 12 Oct 2005 21:42:03 +0000 (21:42 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:04:57 +0000 (11:04 -0500)
Jeremy.
(This used to be commit 5647a5d4b0b7e9083963bfe899e9e0f348ec8bf2)

source3/smbd/open.c

index fac3925b100466e8d43c9f80e22f6d38c047f75d..70687ff5805c1673d575f89321a5c4400125df22 100644 (file)
@@ -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. */