From 7f09b0177faa4da9f881068827b6d92b3e551001 Mon Sep 17 00:00:00 2001 From: Bill Neubauer Date: Mon, 17 Aug 2009 22:21:48 -0700 Subject: [PATCH] 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 --- src/pkg/runtime/chan.c | 4 ---- 1 file changed, 4 deletions(-) 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: -- 2.48.1