1
0
mirror of https://github.com/golang/go synced 2024-11-22 04:04:40 -07:00

runtime: fix set and not used in chan.c

R=rsc
CC=golang-dev
https://golang.org/cl/4416042
This commit is contained in:
Dave Cheney 2011-04-14 08:16:40 -04:00 committed by Russ Cox
parent 2fca1a4049
commit 9c3ecb3617

View File

@ -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;