From c31ff572772c68cdfea66186c275bc2ff76ef5c5 Mon Sep 17 00:00:00 2001 From: Olivier Langlois Date: Mon, 29 Jul 2013 23:53:20 -0400 Subject: [PATCH] remove unnecessary memcpy The next operation is flipping the merkleroot on the same destination. Signed-off-by: Olivier Langlois --- cgminer.c | 1 - 1 file changed, 1 deletion(-) diff --git a/cgminer.c b/cgminer.c index 3d7dce38..6a1c1e5c 100644 --- a/cgminer.c +++ b/cgminer.c @@ -1718,7 +1718,6 @@ static void gen_gbt_work(struct pool *pool, struct work *work) work->job_id = strdup(pool->gbt_workid); cg_runlock(&pool->gbt_lock); - memcpy(work->data + 4 + 32, merkleroot, 32); flip32(work->data + 4 + 32, merkleroot); free(merkleroot); memset(work->data + 4 + 32 + 32 + 4 + 4, 0, 4); /* nonce */