git: 9front

Download patch

ref: 636c5c40af34d101526c610655e7453996d6e3cc
parent: b14303d52bbf710ba0ca1bc92a94c78820972687
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Oct 22 20:29:41 EDT 2016

devip: simplify ipbwrite() by using retun value of qbwrite()

--- a/sys/src/9/ip/devip.c
+++ b/sys/src/9/ip/devip.c
@@ -1185,7 +1185,6 @@
 	Conv *c;
 	Proto *x;
 	Fs *f;
-	int n;
 
 	switch(TYPE(ch->qid)){
 	case Qdata:
@@ -1198,9 +1197,8 @@
 
 		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);
 	}
--