summaryrefslogtreecommitdiff
path: root/source4/build/pidl
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-07-19 19:04:54 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:29:44 -0500
commit728033178b74cbda9574ccdfe2329bae45312a60 (patch)
tree948d9418c0bd720a734009a7dcfed881594a88ce /source4/build/pidl
parentd99d06d954321331f8558da8604e1fd4dd956d13 (diff)
downloadsamba-728033178b74cbda9574ccdfe2329bae45312a60.tar.gz
samba-728033178b74cbda9574ccdfe2329bae45312a60.tar.bz2
samba-728033178b74cbda9574ccdfe2329bae45312a60.zip
r8613: Remove a couple of empty loops.
(This used to be commit 94e338805de465a3ec7d82aa599f09adfcc06bd8)
Diffstat (limited to 'source4/build/pidl')
-rw-r--r--source4/build/pidl/Parse/Pidl/NDR.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/source4/build/pidl/Parse/Pidl/NDR.pm b/source4/build/pidl/Parse/Pidl/NDR.pm
index 33d7839a3a..64d61650f7 100644
--- a/source4/build/pidl/Parse/Pidl/NDR.pm
+++ b/source4/build/pidl/Parse/Pidl/NDR.pm
@@ -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;
}