diff options
| author | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-10-23 00:29:41 +0200 |
|---|---|---|
| committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-10-23 00:29:41 +0200 |
| commit | 75c6ab45e02640959260fa98449180e9408141bc (patch) | |
| tree | 7acab9dd74a83b04197d46db752bdaebcdd1445e | |
| parent | ef5c862ce9b1d29d5251e35dcaf1ea71f4aafd8d (diff) | |
| download | plan9front-75c6ab45e02640959260fa98449180e9408141bc.tar.xz | |
devip: simplify ipbwrite() by using retun value of qbwrite()
| -rw-r--r-- | sys/src/9/ip/devip.c | 6 |
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); } |
