Skip to content

Commit

Permalink
fix coverity issue 1540833 and 1540832 (openvinotoolkit#23635)
Browse files Browse the repository at this point in the history
### Details:
 - *fix coverity scan  issue1540833 and issue1540832*

### Tickets:
 - *ticket-id*
  • Loading branch information
wangleis authored and alvoron committed Apr 29, 2024
1 parent 3f7d6d8 commit a8f7ced
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/plugins/intel_cpu/src/compiled_model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ ov::Any CompiledModel::get_property(const std::string& name) const {
const auto stream_mode = config.schedulingCoreType;
return stream_mode;
} else if (name == ov::hint::model_distribution_policy) {
const auto distribution_policy = config.modelDistributionPolicy;
const auto& distribution_policy = config.modelDistributionPolicy;
return distribution_policy;
} else if (name == ov::hint::enable_hyper_threading.name()) {
const bool use_ht = config.enableHyperThreading;
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/intel_cpu/src/plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ ov::Any Plugin::get_property(const std::string& name, const ov::AnyMap& options)
const auto core_type = engConfig.schedulingCoreType;
return core_type;
} else if (name == ov::hint::model_distribution_policy) {
const auto distribution_policy = engConfig.modelDistributionPolicy;
const auto& distribution_policy = engConfig.modelDistributionPolicy;
return distribution_policy;
} else if (name == ov::hint::enable_hyper_threading) {
const bool ht_value = engConfig.enableHyperThreading;
Expand Down

0 comments on commit a8f7ced

Please sign in to comment.