From: Bill Neubauer Date: Tue, 18 Aug 2009 05:21:48 +0000 (-0700) Subject: Removing dead tests from chan.c X-Git-Tag: weekly.2009-11-06~847 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=7f09b0177faa4da9f881068827b6d92b3e551001;p=gostls13.git Removing dead tests from chan.c Since pres != nil was already checked and the routine sets *pres to false and returns, the subsequent tests are unneeded. R=rsc APPROVED=rsc DELTA=4 (0 added, 4 deleted, 0 changed) OCL=33439 CL=33441 --- diff --git a/src/pkg/runtime/chan.c b/src/pkg/runtime/chan.c index daab4642c4..64a52d48a9 100644 --- a/src/pkg/runtime/chan.c +++ b/src/pkg/runtime/chan.c @@ -223,8 +223,6 @@ loop: goto loop; freesg(c, sg); unlock(&chanlock); - if(pres != nil) - *pres = true; return; asynch: @@ -325,8 +323,6 @@ loop: c->elemalg->copy(c->elemsize, ep, sg->elem); freesg(c, sg); unlock(&chanlock); - if(pres != nil) - *pres = true; return; asynch: