From e07c72687bb49f3302ce5168596018e04e4c3f6c Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 21 Apr 2012 16:50:02 +1000 Subject: [PATCH] Remove unnecessary check for variable that always has memory allocated. --- driver-opencl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver-opencl.c b/driver-opencl.c index b36c9c71..6fb85d92 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) {