From: Dave Cheney Date: Thu, 14 Apr 2011 12:16:40 +0000 (-0400) Subject: runtime: fix set and not used in chan.c X-Git-Tag: weekly.2011-04-27~169 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=9c3ecb361739e9ed2f1cd560197cc9dfab2e7b91;p=gostls13.git runtime: fix set and not used in chan.c R=rsc CC=golang-dev https://golang.org/cl/4416042 --- diff --git a/src/pkg/runtime/chan.c b/src/pkg/runtime/chan.c index 8c45b076d0..2fab9e2161 100644 --- a/src/pkg/runtime/chan.c +++ b/src/pkg/runtime/chan.c @@ -121,7 +121,6 @@ runtime·makechan_c(Type *elem, int64 hint) by = runtime·mal(n + hint*elem->size); c = (Hchan*)by; - by += n; runtime·addfinalizer(c, destroychan, 0); c->elemsize = elem->size;