From 95804f9131ac6653d03541283cce077768c1114d Mon Sep 17 00:00:00 2001 From: Patrick Lai Date: Fri, 10 Jul 2026 21:26:50 -0700 Subject: [PATCH] amdb: remove identical condition check amdb_gpr_call_back_f() function in amdb_thread.c has duplicate conditional branches. Both the if and else if conditions are identical, so the else if branch is unreachable and redundant. Remove the duplicated condition check. Signed-off-by: Patrick Lai --- fwk/spf/amdb/ext/src/amdb_thread.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/fwk/spf/amdb/ext/src/amdb_thread.c b/fwk/spf/amdb/ext/src/amdb_thread.c index 85613200..984bd928 100644 --- a/fwk/spf/amdb/ext/src/amdb_thread.c +++ b/fwk/spf/amdb/ext/src/amdb_thread.c @@ -82,11 +82,6 @@ uint32_t amdb_gpr_call_back_f(gpr_packet_t *gpr_pkt_ptr, void *cb_ctx_ptr) // MDF Response from the satellite: route it to a different queue dst_handle_ptr->cmd_handle_ptr->cmd_q_ptr = (posal_queue_t *)g_amdb_thread_ptr->amdb_rsp_q_ptr; } - else if ((((opcode_type & AR_GUID_TYPE_CONTROL_CMD_RSP) == AR_GUID_TYPE_CONTROL_CMD_RSP)) && - ((posal_queue_t *)g_amdb_thread_ptr->amdb_cmd_q_ptr == dst_handle_ptr->cmd_handle_ptr->cmd_q_ptr)) - { - dst_handle_ptr->cmd_handle_ptr->cmd_q_ptr = (posal_queue_t *)g_amdb_thread_ptr->amdb_rsp_q_ptr; - } /** Compose the GK message payload to be routed to * destination module */