From 93fff4ba2ff6d70473ed81f53c438a1488e5c2c2 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 7 Oct 2015 14:04:43 +0200 Subject: clang-analyzer-deadcode.DeadStores Change-Id: I95404b553f594ced1e2e8b4b8ddf34c08180128f --- opencl/source/opencl_device.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'opencl/source') 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); -- cgit