ref: 75c6ab45e02640959260fa98449180e9408141bc
parent: ef5c862ce9b1d29d5251e35dcaf1ea71f4aafd8d
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Oct 22 20:29:41 EDT 2016
devip: simplify ipbwrite() by using retun value of qbwrite()
--- a/sys/src/9/ip/devip.c
+++ b/sys/src/9/ip/devip.c
@@ -1185,7 +1185,6 @@
Conv *c;
Proto *x;
Fs *f;
- int n;
switch(TYPE(ch->qid)){
case Qdata:
@@ -1198,9 +1197,8 @@
if(bp->next)
bp = concatblock(bp);
- n = BLEN(bp);
- qbwrite(c->wq, bp);
- return n;
+
+ return qbwrite(c->wq, bp);
default:
return devbwrite(ch, bp, offset);
}