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;
|
Conv *c;
|
||||||
Proto *x;
|
Proto *x;
|
||||||
Fs *f;
|
Fs *f;
|
||||||
int n;
|
|
||||||
|
|
||||||
switch(TYPE(ch->qid)){
|
switch(TYPE(ch->qid)){
|
||||||
case Qdata:
|
case Qdata:
|
||||||
|
@ -1198,9 +1197,8 @@ ipbwrite(Chan* ch, Block* bp, ulong offset)
|
||||||
|
|
||||||
if(bp->next)
|
if(bp->next)
|
||||||
bp = concatblock(bp);
|
bp = concatblock(bp);
|
||||||
n = BLEN(bp);
|
|
||||||
qbwrite(c->wq, bp);
|
return qbwrite(c->wq, bp);
|
||||||
return n;
|
|
||||||
default:
|
default:
|
||||||
return devbwrite(ch, bp, offset);
|
return devbwrite(ch, bp, offset);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue