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

Remove unnecessary check for variable that always has memory allocated.

This commit is contained in:
Con Kolivas 2012-04-21 16:50:02 +10:00
parent a5b05d9c55
commit e07c72687b

View File

@ -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)
{