summaryrefslogtreecommitdiff
path: root/opencl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-10-07 14:04:43 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-10-07 15:43:44 +0200
commit93fff4ba2ff6d70473ed81f53c438a1488e5c2c2 (patch)
treea842db451da597d530756b25b3e00ced4b117c10 /opencl
parentae625675a88db46d378cc29f6513bbb4fa6e62a7 (diff)
clang-analyzer-deadcode.DeadStores
Change-Id: I95404b553f594ced1e2e8b4b8ddf34c08180128f
Diffstat (limited to 'opencl')
-rw-r--r--opencl/source/opencl_device.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/opencl/source/opencl_device.cxx b/opencl/source/opencl_device.cxx
index 491323db15dc..c04fb4b8584a 100644
--- a/opencl/source/opencl_device.cxx
+++ b/opencl/source/opencl_device.cxx
@@ -485,9 +485,8 @@ ds_device getDeviceSelection(const char* sProfilePath, bool bForceSelection)
if (!bIsDeviceSelected || bForceSelection)
{
/* Setup */
- ds_status status;
ds_profile* profile = NULL;
- status = initDSProfile(&profile, "LibreOffice v0.1");
+ initDSProfile(&profile, "LibreOffice v0.1");
if (!profile)
{
@@ -499,6 +498,7 @@ ds_device getDeviceSelection(const char* sProfilePath, bool bForceSelection)
/* Try reading scores from file */
std::string tmpStr(sProfilePath);
const char* fileName = tmpStr.append("sc_opencl_device_profile.dat").c_str();
+ ds_status status;
if (!bForceSelection)
{
status = readProfileFromFile(profile, deserializeScore, fileName);