From b29edd111da7d50e657c430eb80095191a3ac583 Mon Sep 17 00:00:00 2001 From: nelisky Date: Wed, 25 Apr 2012 01:55:56 -0700 Subject: [PATCH] Using less heap space as my TP-Link seems to not handle this much --- driver-ztex.c | 13 ------------- libztex.h | 2 +- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/driver-ztex.c b/driver-ztex.c index 7b69828f..be6227ff 100644 --- a/driver-ztex.c +++ b/driver-ztex.c @@ -197,13 +197,6 @@ static uint64_t ztex_scanhash(struct thr_info *thr, struct work *work, overflow = false; - // Because we may have more than one solution on 1.15y boards, lets allocate space for these - for (i=0; iextraSolutions+1)); - if (hdata[i].goldenNonce == NULL) { - applog(LOG_ERR, "%s: failed to allocate hash_data.goldenNonce[%d]", ztex->repr, ztex->extraSolutions+1); - return 0; - } applog(LOG_DEBUG, "%s: entering poll loop", ztex->repr); while (!(overflow || work_restart[thr->id].restart)) { usleep(250000); @@ -222,8 +215,6 @@ static uint64_t ztex_scanhash(struct thr_info *thr, struct work *work, // And there's nothing we can do about it ztex_disable(thr); applog(LOG_ERR, "%s: Failed to read hash data with err %d, giving up", ztex->repr, i); - for (j=0; jblk.nonce = 0xffffffff; - for (i=0; i