diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-06-08 00:19:33 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-06-08 00:19:33 +0200 |
commit | be3a5a6dc372870c9c6cb3b039228fab89db07b5 (patch) | |
tree | 5db24a811edae74d7f071ec694a3e8ad20c1caf2 /sys/src/9/kw | |
parent | 9ee3095553844b91e92f69efb44335c850f05c65 (diff) |
kernel: remove Block refcounting (thanks erik)
Diffstat (limited to 'sys/src/9/kw')
-rw-r--r-- | sys/src/9/kw/ether1116.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/src/9/kw/ether1116.c b/sys/src/9/kw/ether1116.c index c119f2aa2..9e54ef173 100644 --- a/sys/src/9/kw/ether1116.c +++ b/sys/src/9/kw/ether1116.c @@ -484,8 +484,6 @@ static void getmibstats(Ctlr *); static void rxfreeb(Block *b) { - /* freeb(b) will have previously decremented b->ref to 0; raise to 1 */ - _xinc(&b->ref); b->wp = b->rp = (uchar*)((uintptr)(b->lim - Rxblklen) & ~(Bufalign - 1)); assert(((uintptr)b->rp & (Bufalign - 1)) == 0); @@ -1413,7 +1411,6 @@ ctlralloc(Ctlr *ctlr) iprint("ether1116: no memory for rx buffers\n"); break; } - assert(b->ref == 1); b->wp = b->rp = (uchar*) ((uintptr)(b->lim - Rxblklen) & ~(Bufalign - 1)); assert(((uintptr)b->rp & (Bufalign - 1)) == 0); |