Skip to content

Commit 04b57f7

Browse files
haoxian2pcolberg
authored andcommitted
Fixed coverity issue in acl_auto_configure.cpp: Type: Unused value (UNUSED_VALUE)
1 parent 4b7c26b commit 04b57f7

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/acl_auto_configure.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -775,14 +775,12 @@ static bool read_accel_defs(const std::string &config_str,
775775
accel[i].mem.next = reinterpret_cast<void *>(0x00020000);
776776

777777
int total_fields_kernel = 0;
778-
if (result) {
779-
result = read_int_counters(config_str, curr_pos, total_fields_kernel,
780-
counters);
781-
}
778+
result = result && read_int_counters(config_str, curr_pos,
779+
total_fields_kernel, counters);
782780
counters.emplace_back(total_fields_kernel);
783781

784-
result =
785-
read_string_counters(config_str, curr_pos, hal_info[i].name, counters);
782+
result = result && read_string_counters(config_str, curr_pos,
783+
hal_info[i].name, counters);
786784

787785
if (!result)
788786
break;

0 commit comments

Comments
 (0)