summaryrefslogtreecommitdiff
path: root/sys/src/cmd/ip
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2014-02-14 14:12:02 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2014-02-14 14:12:02 +0100
commit80deec0a7b49bd5d51eb1f6552cf5838bcf5d121 (patch)
tree46aa8962511a2cd611c52deddfc15ac7aabbc005 /sys/src/cmd/ip
parent38c35d619570d9873cb2a9ba016c1682edc07365 (diff)
ip/torrent: remove unneeded assignment
Diffstat (limited to 'sys/src/cmd/ip')
-rw-r--r--sys/src/cmd/ip/torrent.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/src/cmd/ip/torrent.c b/sys/src/cmd/ip/torrent.c
index f8b834c5f..36e437f21 100644
--- a/sys/src/cmd/ip/torrent.c
+++ b/sys/src/cmd/ip/torrent.c
@@ -1044,7 +1044,6 @@ mktorrent(int fd, Dict *alist, Dict *wlist)
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)