From: Christian Hopps Date: Sat, 30 Dec 2023 14:36:50 +0000 (+0000) Subject: mgmtd: fix coverity CID 1574978 X-Git-Tag: base_10.0~164^2~4 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=913892e2adce7a622d75ffca730ad0b4be8580b0;p=matthieu%2Ffrr.git mgmtd: fix coverity CID 1574978 Signed-off-by: Christian Hopps --- diff --git a/mgmtd/mgmt_txn.c b/mgmtd/mgmt_txn.c index 7e625c73ec..0696339472 100644 --- a/mgmtd/mgmt_txn.c +++ b/mgmtd/mgmt_txn.c @@ -426,7 +426,6 @@ static void mgmt_txn_req_free(struct mgmt_txn_req **txn_req) { int indx; struct mgmt_txn_reqs_head *req_list = NULL; - struct mgmt_txn_reqs_head *pending_list = NULL; enum mgmt_be_client_id id; struct mgmt_be_client_adapter *adapter; struct mgmt_commit_cfg_req *ccreq; @@ -527,13 +526,7 @@ static void mgmt_txn_req_free(struct mgmt_txn_req **txn_req) break; } - if ((*txn_req)->pending_be_proc && pending_list) { - mgmt_txn_reqs_del(pending_list, *txn_req); - MGMTD_TXN_DBG("Removed req-id: %" PRIu64 - " from pending-list (left:%zu)", - (*txn_req)->req_id, - mgmt_txn_reqs_count(pending_list)); - } else if (req_list) { + if (req_list) { mgmt_txn_reqs_del(req_list, *txn_req); MGMTD_TXN_DBG("Removed req-id: %" PRIu64 " from request-list (left:%zu)",