s4:torture: remove an unused variable and bogus check from the defer_open test
authorMichael Adam <obnox@samba.org>
Thu, 24 Jul 2014 22:20:47 +0000 (00:20 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 7 Aug 2014 20:12:12 +0000 (22:12 +0200)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/torture/basic/base.c

index 4f2240e49e446e6ac92dc676473324c7a62d9125..5e5d6b9eecd725b5ebb5e8d721052a052a2ce8e4 100644 (file)
@@ -649,7 +649,6 @@ test the timing of deferred open requests
 static bool run_deferopen(struct torture_context *tctx, struct smbcli_state *cli, int dummy)
 {
        const char *fname = "\\defer_open_test.dat";
-       int retries=4;
        int i = 0;
        bool correct = true;
        int nsec;
@@ -660,11 +659,6 @@ static bool run_deferopen(struct torture_context *tctx, struct smbcli_state *cli
        msec = nsec / 1000;
        sec = ((double)nsec) / ((double) 1000000);
 
-       if (retries <= 0) {
-               torture_comment(tctx, "failed to connect\n");
-               return false;
-       }
-
        torture_comment(tctx, "Testing deferred open requests.\n");
 
        while (i < 4) {