It is unnecessary to do the bool calculation for expression.
Signed-off-by: anlan_cs <vic.lan@pica8.com>
}
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);
}
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!");