summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBill Neubauer <wcn@golang.org>2009-08-17 22:21:48 -0700
committerBill Neubauer <wcn@golang.org>2009-08-17 22:21:48 -0700
commitd54e594fdf137b78cc9561bccafda8fbc3fc3a66 (patch)
tree74838f0cd8eb4e136f58a8a7c098037dfd4ed57d /src
parent77b154bbc22c1ee33a50c9d6e26bf80a6ac1ab8e (diff)
downloadgolang-d54e594fdf137b78cc9561bccafda8fbc3fc3a66.tar.gz
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
Diffstat (limited to 'src')
-rw-r--r--src/pkg/runtime/chan.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/pkg/runtime/chan.c b/src/pkg/runtime/chan.c
index daab4642c..64a52d48a 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: