clang-analyzer-deadcode.DeadStores
Change-Id: I95404b553f594ced1e2e8b4b8ddf34c08180128f
This commit is contained in:
parent
ae625675a8
commit
93fff4ba2f
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue