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/zebra_pbr.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/zebra_pbr.c')
| -rw-r--r-- | zebra/zebra_pbr.c | 3 | 
1 files changed, 1 insertions, 2 deletions
diff --git a/zebra/zebra_pbr.c b/zebra/zebra_pbr.c index 8b98cdc688..e66d7aaf5c 100644 --- a/zebra/zebra_pbr.c +++ b/zebra/zebra_pbr.c @@ -591,8 +591,7 @@ void zebra_pbr_process_ipset_entry(struct zebra_dplane_ctx *ctx)  	else  		mode = 0; -	if (!dplane_ctx_get_pbr_ipset_entry(ctx, &ipset_entry)) -		return; +	dplane_ctx_get_pbr_ipset_entry(ctx, &ipset_entry);  	dplane_ctx_get_pbr_ipset(ctx, &ipset);  	ipset_entry.backpointer = &ipset;  | 
