]> git.proxmox.com Git - mirror_frr.git/commit - zebra/zebra_mpls.c
zebra: nhlfe_alloc should not fail
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 5 Jun 2020 13:02:44 +0000 (09:02 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 5 Jun 2020 13:04:55 +0000 (09:04 -0400)
commit3e0a9b403254de62eaaf45c032295026f63a9fd6
treebe1b521f6db14413807f7ce8c560a88b0fe7a8b8
parentce49c4255dc54ac5c8e9df7312be89797319da5a
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>
zebra/zebra_mpls.c