Skip to content

Commit

Permalink
Fixed coverity issue in acl_auto_configure.cpp: Type: Unused value (U…
Browse files Browse the repository at this point in the history
…NUSED_VALUE)
  • Loading branch information
haoxian2 committed Dec 5, 2022
1 parent 7de03cb commit 0ece0ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/acl_auto_configure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -724,9 +724,9 @@ static bool read_accel_defs(const std::string &config_str,
accel[i].mem.next = reinterpret_cast<void *>(0x00020000);

int total_fields_kernel = 0;
if (result) {
result = read_int_counters(config_str, curr_pos, total_fields_kernel,
counters);
if (!result || !read_int_counters(config_str, curr_pos, total_fields_kernel,
counters)) {
total_fields_kernel = 0;
}
counters.emplace_back(total_fields_kernel);

Expand Down

0 comments on commit 0ece0ed

Please # to comment.