1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 07:17:58 +00:00

Avoid repeating avalon_idle in do_avalon_close and extra sleep.

This commit is contained in:
Con Kolivas 2013-05-25 14:38:33 +10:00
parent ee4d72e338
commit 764f7cc403

View File

@ -741,7 +741,6 @@ static void do_avalon_close(struct thr_info *thr)
struct avalon_info *info = avalon->device_data;
avalon_free_work(thr);
sleep(1);
avalon_reset(avalon, avalon->device_fd);
avalon_close(avalon->device_fd);
avalon->device_fd = -1;
@ -885,7 +884,6 @@ static int64_t avalon_scanhash(struct thr_info *thr)
avalon->device_id);
dev_error(avalon, REASON_DEV_COMMS_ERROR);
first_try = 0;
sleep(1);
avalon_init(avalon);
return 0; /* This should never happen */
}
@ -971,7 +969,6 @@ static int64_t avalon_scanhash(struct thr_info *thr)
"AVA%i: FPGA controller messed up, %d wrong results",
avalon->device_id, result_wrong);
dev_error(avalon, REASON_DEV_COMMS_ERROR);
sleep(1);
avalon_init(avalon);
return 0;
}