summaryrefslogtreecommitdiff
path: root/sys/src/9/ip
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2016-10-23 00:29:41 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2016-10-23 00:29:41 +0200
commit75c6ab45e02640959260fa98449180e9408141bc (patch)
tree7acab9dd74a83b04197d46db752bdaebcdd1445e /sys/src/9/ip
parentef5c862ce9b1d29d5251e35dcaf1ea71f4aafd8d (diff)
devip: simplify ipbwrite() by using retun value of qbwrite()
Diffstat (limited to 'sys/src/9/ip')
-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);
}