]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:torture:smb2: remove an unused variable from the oplock-exclusive2 test
authorMichael Adam <obnox@samba.org>
Tue, 11 Sep 2012 14:26:44 +0000 (16:26 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 11 Sep 2012 18:10:07 +0000 (20:10 +0200)
source4/torture/smb2/oplock.c

index 7e0ea7d2e04184784000b613aac53b537ca691a7..ebf24ad6ff3034857e44a7c111d063ab6ffb963d 100644 (file)
@@ -432,7 +432,6 @@ static bool test_smb2_oplock_exclusive2(struct torture_context *tctx,
        NTSTATUS status;
        bool ret = true;
        union smb_open io;
-       union smb_unlink unl;
        struct smb2_handle h, h1, h2;
 
        status = torture_smb2_testdir(tree1, BASEDIR, &h);
@@ -487,8 +486,6 @@ static bool test_smb2_oplock_exclusive2(struct torture_context *tctx,
 
        /* now we have 2 level II oplocks... */
        torture_comment(tctx, "try to unlink it - should cause a break\n");
-       unl.unlink.in.pattern = fname;
-       unl.unlink.in.attrib = 0;
        status = smb2_util_unlink(tree2, fname);
        torture_assert_ntstatus_ok(tctx, status, "Error unlinking the file");
        torture_wait_for_oplock_break(tctx);