r8613: Remove a couple of empty loops.
authorJelmer Vernooij <jelmer@samba.org>
Tue, 19 Jul 2005 19:04:54 +0000 (19:04 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:29:44 +0000 (13:29 -0500)
(This used to be commit 94e338805de465a3ec7d82aa599f09adfcc06bd8)

source4/build/pidl/Parse/Pidl/NDR.pm

index 33d7839a3a7bebb381918c2e7c330ee3401f3767..64d61650f76ac7f0ba245b03f07b55be0d7d4d3e 100644 (file)
@@ -592,10 +592,13 @@ sub ContainsDeferred($$)
 {
        my ($e,$l) = @_;
 
-       do {
+       return 1 if ($l->{CONTAINS_DEFERRED});
+
+       while ($l = GetNextLevel($e,$l))
+       {
                return 1 if ($l->{IS_DEFERRED}); 
                return 1 if ($l->{CONTAINS_DEFERRED});
-       } while ($l = GetNextLevel($e,$l));
+       } 
        
        return 0;
 }