summaryrefslogtreecommitdiff
path: root/mgmtd/mgmt_txn.c
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2023-12-30 14:36:50 +0000
committerChristian Hopps <chopps@labn.net>2023-12-30 16:03:45 +0000
commit913892e2adce7a622d75ffca730ad0b4be8580b0 (patch)
treecb9eded1c67fd165f02928b0a0b26f2c0efb25fe /mgmtd/mgmt_txn.c
parentdb11968a3d4662f18135b5beab9c1d8c8d0e9630 (diff)
mgmtd: fix coverity CID 1574978
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'mgmtd/mgmt_txn.c')
-rw-r--r--mgmtd/mgmt_txn.c9
1 files changed, 1 insertions, 8 deletions
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)",