Commit 0494dda7cc293c8a997d90ff79c14c1553def575

Con Kolivas 2014-04-06T14:02:36

Remove unnecessary check for thread_prepare function

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/cgminer.c b/cgminer.c
index 34c9296..91d0a2f 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -8970,7 +8970,7 @@ static void hotplug_process(void)
 			thr->cgpu = cgpu;
 			thr->device_thread = j;
 
-			if (cgpu->drv->thread_prepare && !cgpu->drv->thread_prepare(thr)) {
+			if (!cgpu->drv->thread_prepare(thr)) {
 				null_device_drv(cgpu->drv);
 				cgpu->deven = DEV_DISABLED;
 				continue;