git: 9front

Download patch

ref: 025bb573484a4a04da5018e775c94f57ef014825
parent: a0de981777f214a1c65c8db566caef29357b2188
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Fri Feb 14 09:12:02 EST 2014

ip/torrent: remove unneeded assignment

--- a/sys/src/cmd/ip/torrent.c
+++ b/sys/src/cmd/ip/torrent.c
@@ -1044,7 +1044,6 @@
 		werrstr("empty file");
 		return -1;
 	}
-	npieces = 1;
 	for(blocksize = 256*1024;;blocksize<<=1){
 		npieces = (d->length + blocksize-1) / blocksize;
 		if(npieces <= 8*1024 || blocksize >= 2*1024*1024)
--