summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorAndy Lester <andy@petdance.com>2006-05-02 19:54:30 -0500
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-05-03 09:04:30 +0000
commit3ea285d10994f16a1808764be228780ee879570d (patch)
tree3213c2fdc8a215df71d651dd77fdb9ec9f478314 /op.c
parent4a021917c87977d18a33de03b9e43a13a14f24d7 (diff)
downloadperl-3ea285d10994f16a1808764be228780ee879570d.tar.gz
Remove an unnecessary goto
Message-ID: <20060503055430.GA4922@petdance.com> p4raw-id: //depot/perl@28079
Diffstat (limited to 'op.c')
-rw-r--r--op.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/op.c b/op.c
index 70f188e02b..75d18501a1 100644
--- a/op.c
+++ b/op.c
@@ -1152,15 +1152,14 @@ Perl_mod(pTHX_ OP *o, I32 type)
CV *cv;
OP *okid;
- if (kid->op_type == OP_PUSHMARK)
- goto skip_kids;
- if (kid->op_type != OP_NULL || kid->op_targ != OP_LIST)
- Perl_croak(aTHX_
- "panic: unexpected lvalue entersub "
- "args: type/targ %ld:%"UVuf,
- (long)kid->op_type, (UV)kid->op_targ);
- kid = kLISTOP->op_first;
- skip_kids:
+ if (kid->op_type != OP_PUSHMARK) {
+ if (kid->op_type != OP_NULL || kid->op_targ != OP_LIST)
+ Perl_croak(aTHX_
+ "panic: unexpected lvalue entersub "
+ "args: type/targ %ld:%"UVuf,
+ (long)kid->op_type, (UV)kid->op_targ);
+ kid = kLISTOP->op_first;
+ }
while (kid->op_sibling)
kid = kid->op_sibling;
if (!(kid->op_type == OP_NULL && kid->op_targ == OP_RV2CV)) {