diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2021-10-28 10:42:23 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2021-11-17 07:46:36 -0500 |
| commit | f284c1322da96c3ea694b4243b83adaead95ded7 (patch) | |
| tree | d012c8927f1afa76436aeb4ff66e04ce2a7b95c1 /zebra/zapi_msg.c | |
| parent | 8d78e148b852ee31399d9a66af948cf604016ebe (diff) | |
zebra: return void for dplane_ctx_get_pbr_ipset_entry
The dplane_ctx_get_pbr_ipset_entry function only
failed when the caller did not pass in a valid
usable pointer. Change the code to assert on
a pointer not being passed in and remove the
bool return
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/zapi_msg.c')
| -rw-r--r-- | zebra/zapi_msg.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/zebra/zapi_msg.c b/zebra/zapi_msg.c index 5bacf1f40a..54ab0afd5c 100644 --- a/zebra/zapi_msg.c +++ b/zebra/zapi_msg.c @@ -940,8 +940,7 @@ void zsend_ipset_entry_notify_owner(const struct zebra_dplane_ctx *ctx, struct zebra_pbr_ipset ipset; uint16_t cmd = ZEBRA_IPSET_ENTRY_NOTIFY_OWNER; - if (!dplane_ctx_get_pbr_ipset_entry(ctx, &ipent)) - return; + dplane_ctx_get_pbr_ipset_entry(ctx, &ipent); dplane_ctx_get_pbr_ipset(ctx, &ipset); if (IS_ZEBRA_DEBUG_PACKET) |
