From 52b0682b91826a49f6f7a947bf0c03a854a83928 Mon Sep 17 00:00:00 2001 From: "Yang, Hao Xiang" Date: Mon, 5 Dec 2022 13:39:39 -0800 Subject: [PATCH] Fixed coverity issue in acl_auto_configure.cpp: Type: Unused value (UNUSED_VALUE) --- src/acl_auto_configure.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/acl_auto_configure.cpp b/src/acl_auto_configure.cpp index 323cba8e..ab09d956 100644 --- a/src/acl_auto_configure.cpp +++ b/src/acl_auto_configure.cpp @@ -724,14 +724,12 @@ static bool read_accel_defs(const std::string &config_str, accel[i].mem.next = reinterpret_cast(0x00020000); int total_fields_kernel = 0; - if (result) { - result = read_int_counters(config_str, curr_pos, total_fields_kernel, - counters); - } + result = result && read_int_counters(config_str, curr_pos, + total_fields_kernel, counters); counters.emplace_back(total_fields_kernel); - result = - read_string_counters(config_str, curr_pos, hal_info[i].name, counters); + result = result && read_string_counters(config_str, curr_pos, + hal_info[i].name, counters); if (!result) break;