summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-10-28 13:22:32 +0200
committerTor Lillqvist <tml@collabora.com>2014-10-28 13:22:32 +0200
commitaf0694e6459519911900a81815e533084a2407f8 (patch)
treed154fcf2d12e82c7f8e7502741ee4ea9be583681 /sc
parentc22b6d1d13c161b6c0acbec8cf80334d517c2886 (diff)
If we #define MAX_CLKERNEL_NUM 200, we know that it isn't <= 0
Change-Id: Ieadc73ce2bd6f7d11b434312d3ff872a1489307a
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/opencl/openclwrapper.cxx4
-rw-r--r--sc/source/core/opencl/openclwrapper.hxx1
2 files changed, 0 insertions, 5 deletions
diff --git a/sc/source/core/opencl/openclwrapper.cxx b/sc/source/core/opencl/openclwrapper.cxx
index 245fb77fd697..0e0cf1eda762 100644
--- a/sc/source/core/opencl/openclwrapper.cxx
+++ b/sc/source/core/opencl/openclwrapper.cxx
@@ -471,10 +471,6 @@ bool OpenCLDevice::buildProgramFromBinary(const char* buildOption, GPUEnv* gpuIn
bool OpenCLDevice::initOpenCLRunEnv( int argc )
{
- if ( MAX_CLKERNEL_NUM <= 0 )
- {
- return true;
- }
if ( ( argc > MAX_CLFILE_NUM ) || ( argc < 0 ) )
return true;
diff --git a/sc/source/core/opencl/openclwrapper.hxx b/sc/source/core/opencl/openclwrapper.hxx
index d1b744fbf19f..a0434f1deb31 100644
--- a/sc/source/core/opencl/openclwrapper.hxx
+++ b/sc/source/core/opencl/openclwrapper.hxx
@@ -31,7 +31,6 @@ if( status != CL_SUCCESS ) \
}
#define MAX_CLFILE_NUM 50
-#define MAX_CLKERNEL_NUM 200
#if defined(_MSC_VER)
#ifndef strcasecmp