summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_mpls.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-08-15 21:56:53 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-08-15 23:53:09 +0200
commit9ea660be3ae4b1914a09a0f569851575fa138f18 (patch)
treeaef5a4ee8c3629bb32200ce3e0c9841ad42e895e /zebra/zebra_mpls.c
parentpimd: Trust backet->data (diff)
downloadfrr-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.c2
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;