devip: simplify ipbwrite() by using retun value of qbwrite()
This commit is contained in:
parent
ef5c862ce9
commit
75c6ab45e0
1 changed files with 2 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue