mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
Merge pull request #13977 from anlancs/fix/mgmt-bool-change
mgmtd: adjust one unnecessary bool convert
This commit is contained in:
commit
c362e274b2
|
@ -1160,8 +1160,7 @@ int mgmt_fe_send_set_cfg_reply(uint64_t session_id, uint64_t txn_id,
|
|||
}
|
||||
|
||||
return fe_adapter_send_set_cfg_reply(session, ds_id, req_id,
|
||||
result == MGMTD_SUCCESS ? true
|
||||
: false,
|
||||
result == MGMTD_SUCCESS,
|
||||
error_if_any, implicit_commit);
|
||||
}
|
||||
|
||||
|
|
|
@ -1380,8 +1380,7 @@ static int mgmt_txn_send_be_cfg_data(struct mgmt_txn_ctx *txn,
|
|||
batch->batch_id,
|
||||
cfg_req.cfgdata_reqs,
|
||||
cfg_req.num_reqs,
|
||||
indx == num_batches ? true
|
||||
: false)) {
|
||||
indx == num_batches)) {
|
||||
(void)mgmt_txn_send_commit_cfg_reply(
|
||||
txn, MGMTD_INTERNAL_ERROR,
|
||||
"Internal Error! Could not send config data to backend!");
|
||||
|
|
Loading…
Reference in a new issue