Skip to content

Commit 36d9360

Browse files
authored
fix coverity issue 1540833 and 1540832 (openvinotoolkit#23635)
### Details: - *fix coverity scan issue1540833 and issue1540832* ### Tickets: - *ticket-id*
1 parent 76d905f commit 36d9360

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/plugins/intel_cpu/src/compiled_model.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ ov::Any CompiledModel::get_property(const std::string& name) const {
250250
const auto stream_mode = config.schedulingCoreType;
251251
return stream_mode;
252252
} else if (name == ov::hint::model_distribution_policy) {
253-
const auto distribution_policy = config.modelDistributionPolicy;
253+
const auto& distribution_policy = config.modelDistributionPolicy;
254254
return distribution_policy;
255255
} else if (name == ov::hint::enable_hyper_threading.name()) {
256256
const bool use_ht = config.enableHyperThreading;

src/plugins/intel_cpu/src/plugin.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ ov::Any Plugin::get_property(const std::string& name, const ov::AnyMap& options)
410410
const auto core_type = engConfig.schedulingCoreType;
411411
return core_type;
412412
} else if (name == ov::hint::model_distribution_policy) {
413-
const auto distribution_policy = engConfig.modelDistributionPolicy;
413+
const auto& distribution_policy = engConfig.modelDistributionPolicy;
414414
return distribution_policy;
415415
} else if (name == ov::hint::enable_hyper_threading) {
416416
const bool ht_value = engConfig.enableHyperThreading;

0 commit comments

Comments
 (0)