[IE[[VPU] Coverity issues fix (#8598)

- Coverity issues fix
- profinfo.execution_index was uninitialized in some cases
- Removal deadcode
This commit is contained in:
Aleksandr Korolev 2021-11-17 12:28:22 +03:00 committed by GitHub
parent af19b26980
commit b9b50527fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View File

@ -47,9 +47,8 @@ std::map<std::string, ie::InferenceEngineProfileInfo> parsePerformanceReport(
stageMeta.layerType.copy(profInfo.layer_type, sizeof(profInfo.layer_type) / sizeof(profInfo.layer_type[0]), 0);
stageMeta.stageType.copy(profInfo.exec_type, sizeof(profInfo.exec_type) / sizeof(profInfo.exec_type[0]), 0);
if (stageMeta.stageType == "<Receive-Tensor>") {
profInfo.execution_index = 0;
} else if (stageMeta.status == ie::InferenceEngineProfileInfo::EXECUTED) {
profInfo.execution_index = 0;
if (stageMeta.status == ie::InferenceEngineProfileInfo::EXECUTED) {
profInfo.execution_index = execIndex;
execIndex++;
}

View File

@ -159,7 +159,7 @@ ncStatus_t MyriadExecutor::bootNextDevice(std::vector<DevicePtr> &devicePool, co
if (status != NC_OK) {
_log->warning("Failed to get device platform");
ncDeviceClose(&device._deviceHandle, _mvnc->watchdogHndl());
return status != NC_OK ? status : NC_ERROR; // for dataLength error
return status;
}
// Get device platform