Skip to content

Commit 522dbed

Browse files
wangleisMirceaDan99
authored andcommitted
fix coverity scan issue CID 1529754 (openvinotoolkit#28195)
### Details: - *item1* CID 1529754: (openvinotoolkit#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*
1 parent 7671504 commit 522dbed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/inference/src/os/lin/lin_system_conf.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ CPU::CPU() {
237237

238238
if (!get_info_linux(cache_info_mode)) {
239239
parse_cache_info_linux(system_info_table,
240-
node_info_table,
240+
std::move(node_info_table),
241241
_processors,
242242
_numa_nodes,
243243
_sockets,
@@ -251,7 +251,7 @@ CPU::CPU() {
251251
(_proc_type_table[0][ALL_PROC] != _proc_type_table[0][EFFICIENT_CORE_PROC]))) {
252252
if (!get_info_linux(freq_info_mode)) {
253253
parse_freq_info_linux(system_info_table,
254-
node_info_table,
254+
std::move(node_info_table),
255255
_processors,
256256
_numa_nodes,
257257
_sockets,

0 commit comments

Comments
 (0)