summaryrefslogtreecommitdiff
path: root/opencl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-06-02 09:37:11 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-06-02 09:37:11 +0200
commitfbf8fa7e4728a717039b8779d69321cb88e5e527 (patch)
treea924ec315554e7136dc29f31b6b8e41ad37cb77e /opencl
parentcac4aa7b7a272e81360bcd27a6388500b0f6aeef (diff)
Improved loplugin:redundantcast static_cast handling: opencl
Change-Id: I45fc65e3b27e0c57d041c4f724c23d90ec1448d3
Diffstat (limited to 'opencl')
-rw-r--r--opencl/source/openclwrapper.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/opencl/source/openclwrapper.cxx b/opencl/source/openclwrapper.cxx
index 2ca0a603a5da..d59630c53981 100644
--- a/opencl/source/openclwrapper.cxx
+++ b/opencl/source/openclwrapper.cxx
@@ -768,13 +768,13 @@ void findDeviceInfoFromDeviceId(cl_device_id aDeviceId, size_t& rDeviceId, size_
const std::vector<OpenCLPlatformInfo>& rPlatforms = fillOpenCLInfo();
for(size_t i = 0; i < rPlatforms.size(); ++i)
{
- cl_platform_id platId = static_cast<cl_platform_id>(rPlatforms[i].platform);
+ cl_platform_id platId = rPlatforms[i].platform;
if(platId != platformId)
continue;
for(size_t j = 0; j < rPlatforms[i].maDevices.size(); ++j)
{
- cl_device_id id = static_cast<cl_device_id>(rPlatforms[i].maDevices[j].device);
+ cl_device_id id = rPlatforms[i].maDevices[j].device;
if(id == aDeviceId)
{
rDeviceId = j;