From cce7508378ed5b519a7a176aea016e2e0ab184cf Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Sun, 18 Nov 2012 22:24:40 +0000 Subject: [PATCH] opencl: Use new dev_error function for REASON_DEV_NOSTART --- driver-opencl.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/driver-opencl.c b/driver-opencl.c index eec6ce77..3ce14a50 100644 --- a/driver-opencl.c +++ b/driver-opencl.c @@ -1359,9 +1359,7 @@ static bool opencl_thread_prepare(struct thr_info *thr) cgpu->deven = DEV_DISABLED; cgpu->status = LIFE_NOSTART; - cgpu->device_last_not_well = time(NULL); - cgpu->device_not_well_reason = REASON_DEV_NOSTART; - cgpu->dev_nostart_count++; + dev_error(cgpu, REASON_DEV_NOSTART); return false; }