diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-08-15 21:56:53 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-08-15 23:53:09 +0200 |
commit | 9ea660be3ae4b1914a09a0f569851575fa138f18 (patch) | |
tree | aef5a4ee8c3629bb32200ce3e0c9841ad42e895e /zebra/zebra_mpls.c | |
parent | pimd: Trust backet->data (diff) | |
download | frr-9ea660be3ae4b1914a09a0f569851575fa138f18.tar.xz frr-9ea660be3ae4b1914a09a0f569851575fa138f18.zip |
zebra: Trust backet->data
The backet->data cannot be NULL, no need to check for it.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_mpls.c')
-rw-r--r-- | zebra/zebra_mpls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zebra_mpls.c b/zebra/zebra_mpls.c index 424a11546..2a454b4a6 100644 --- a/zebra/zebra_mpls.c +++ b/zebra/zebra_mpls.c @@ -2433,7 +2433,7 @@ void mpls_ldp_lsp_uninstall_all(struct hash_backet *backet, void *ctxt) struct hash *lsp_table; lsp = (zebra_lsp_t *)backet->data; - if (!lsp || !lsp->nhlfe_list) + if (!lsp->nhlfe_list) return; lsp_table = ctxt; |