summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2017-02-09 23:12:42 +0100
committerYang Rong <rong.r.yang@intel.com>2017-02-10 14:22:09 +0800
commit5689899f53482efe122ecfc4248ce5e8b8f72171 (patch)
tree4ca25a2183e8f66dd7f6cec3b38a67084f30895f /src
parent8726605ea77b5633c1f31c71e5a20aadcc38ed44 (diff)
downloadbeignet-5689899f53482efe122ecfc4248ce5e8b8f72171.tar.gz
Fix obvious copy-paste
The conditional was equal to the one before, and would never be hit because internal kernels were reset after release. Instead, since the body is resetting built-in kernels, it appears obvious that the conditional should be on the existence of built-in kernels. Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/cl_context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cl_context.c b/src/cl_context.c
index 3f2e7578..cbe2e017 100644
--- a/src/cl_context.c
+++ b/src/cl_context.c
@@ -373,7 +373,7 @@ cl_context_delete(cl_context ctx)
ctx->internal_prgs[i] = NULL;
}
- if (ctx->internal_kernels[i]) {
+ if (ctx->built_in_kernels[i]) {
cl_kernel_delete(ctx->built_in_kernels[i]);
ctx->built_in_kernels[i] = NULL;
}