diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-06-05 09:02:44 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-06-05 09:04:55 -0400 |
| commit | 3e0a9b403254de62eaaf45c032295026f63a9fd6 (patch) | |
| tree | be1b521f6db14413807f7ce8c560a88b0fe7a8b8 /lib/filter_cli.c | |
| parent | ce49c4255dc54ac5c8e9df7312be89797319da5a (diff) | |
zebra: nhlfe_alloc should not fail
Let's prevent nhlfe_alloc from actually returning anything that can fail:
1) nexthop_new -> never returns NULL so checking for NULL here
makes no sense, remove it.
2) lsp not being NULL is a assert condition here as that it's
a precondition for the function to work properly.
3) since nhlfe_alloc cannot return NULL now remove tests
for it in callng functions
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/filter_cli.c')
0 files changed, 0 insertions, 0 deletions
