Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 3 additions & 10 deletions cgminer.c
Original file line number Diff line number Diff line change
Expand Up @@ -8121,17 +8121,10 @@ struct work *clone_queued_work_bymidstate(struct cgpu_info *cgpu, char *midstate
* given que hashtable. Code using this function must be able
* to handle NULL as a return which implies there is no matching work.
* The calling function must lock access to the que if it is required. */
struct work *__find_work_byid(struct work *que, uint32_t id)
struct work *__find_work_byid(struct work *queue, uint32_t id)
{
struct work *work, *tmp, *ret = NULL;

HASH_ITER(hh, que, work, tmp) {
if (work->id == id) {
ret = work;
break;
}
}

struct work *ret = NULL;
HASH_FIND_INT(queue, &id, ret);
return ret;
}

Expand Down