Browse Source

Remove unnecessary check for variable that always has memory allocated.

Con Kolivas 14 years ago
parent
commit
e07c72687b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      driver-opencl.c

+ 1 - 1
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)
 	{