From 728033178b74cbda9574ccdfe2329bae45312a60 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Tue, 19 Jul 2005 19:04:54 +0000 Subject: r8613: Remove a couple of empty loops. (This used to be commit 94e338805de465a3ec7d82aa599f09adfcc06bd8) --- source4/build/pidl/Parse/Pidl/NDR.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'source4/build/pidl/Parse') 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; } -- cgit