Commit e07c72687bb49f3302ce5168596018e04e4c3f6c

Con Kolivas 2012-04-21T16:50:02

Remove unnecessary check for variable that always has memory allocated.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/driver-opencl.c b/driver-opencl.c
index b36c9c7..6fb85d9 100644
--- a/driver-opencl.c
+++ b/driver-opencl.c
@@ -1209,7 +1209,7 @@ static bool opencl_thread_prepare(struct thr_info *thr)
 
 		return false;
 	}
-	if (name && !cgpu->name)
+	if (!cgpu->name)
 		cgpu->name = strdup(name);
 	if (!cgpu->kname)
 	{