shithub: riscv

Download patch

ref: 80deec0a7b49bd5d51eb1f6552cf5838bcf5d121
parent: 38c35d619570d9873cb2a9ba016c1682edc07365
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)