clang-analyzer-deadcode.DeadStores

Change-Id: I95404b553f594ced1e2e8b4b8ddf34c08180128f
This commit is contained in:
Stephan Bergmann 2015-10-07 14:04:43 +02:00
parent ae625675a8
commit 93fff4ba2f

View file

@ -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);