summaryrefslogtreecommitdiff
path: root/pbrd/pbr_map.c
diff options
context:
space:
mode:
authorStephen Worley <sworley@cumulusnetworks.com>2020-09-23 14:17:15 -0400
committerStephen Worley <sworley@cumulusnetworks.com>2020-09-23 14:17:15 -0400
commit5d06c5d5ef50b66f7ffc2fee70c20f49d064aa87 (patch)
tree4b7477ec79aa225e58b74489cac722ceadedff77 /pbrd/pbr_map.c
parentfe870621b577e3a486604b95cedd4fde86d36ccd (diff)
pbrd: use bool for pbr_send_pbr_map() return val
Use a bool as the return val for pbr_send_pbr_map() to make the code a bit more readable. Dont expect there to be need for values other than true or false anyway. Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
Diffstat (limited to 'pbrd/pbr_map.c')
-rw-r--r--pbrd/pbr_map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pbrd/pbr_map.c b/pbrd/pbr_map.c
index b282db999d..01caff5b52 100644
--- a/pbrd/pbr_map.c
+++ b/pbrd/pbr_map.c
@@ -725,7 +725,7 @@ void pbr_map_policy_delete(struct pbr_map *pbrm, struct pbr_map_interface *pmi)
for (ALL_LIST_ELEMENTS_RO(pbrm->seqnumbers, node, pbrms))
- if (!pbr_send_pbr_map(pbrms, pmi, false, true))
+ if (pbr_send_pbr_map(pbrms, pmi, false, true))
sent = true; /* rule removal sent to zebra */
pmi->delete = true;