Skip to content

Commit

Permalink
fix coverity scan issue CID 1529754 (openvinotoolkit#28195)
Browse files Browse the repository at this point in the history
### Details:
 - *item1*
	
CID 1529754: (#1 of 1): COPY_INSTEAD_OF_MOVE (COPY_INSTEAD_OF_MOVE)
1. copy_constructor_call: node_info_table is passed-by-value as
parameter to parse_freq_info_linux when it could be moved instead.
     	Use std::move(node_info_table) instead of node_info_table.
221                                  node_info_table,
222                                  _processors,
223                                  _numa_nodes,
224                                  _sockets,
225                                  _cores,
226                                  _proc_type_table,
227                                  _cpu_mapping_table);

### Tickets:
 - *ticket-id*
  • Loading branch information
wangleis authored Dec 26, 2024
1 parent 35f2a0c commit 25c6025
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/inference/src/os/lin/lin_system_conf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ CPU::CPU() {

if (!get_info_linux(cache_info_mode)) {
parse_cache_info_linux(system_info_table,
node_info_table,
std::move(node_info_table),
_processors,
_numa_nodes,
_sockets,
Expand All @@ -251,7 +251,7 @@ CPU::CPU() {
(_proc_type_table[0][ALL_PROC] != _proc_type_table[0][EFFICIENT_CORE_PROC]))) {
if (!get_info_linux(freq_info_mode)) {
parse_freq_info_linux(system_info_table,
node_info_table,
std::move(node_info_table),
_processors,
_numa_nodes,
_sockets,
Expand Down

0 comments on commit 25c6025

Please sign in to comment.