summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/src/9/ip/devip.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/src/9/ip/devip.c b/sys/src/9/ip/devip.c
index c891fb399..c784f73a0 100644
--- a/sys/src/9/ip/devip.c
+++ b/sys/src/9/ip/devip.c
@@ -1185,7 +1185,6 @@ ipbwrite(Chan* ch, Block* bp, ulong offset)
Conv *c;
Proto *x;
Fs *f;
- int n;
switch(TYPE(ch->qid)){
case Qdata:
@@ -1198,9 +1197,8 @@ ipbwrite(Chan* ch, Block* bp, ulong offset)
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);
}