diff options
| author | Quentin Young <qlyoung@users.noreply.github.com> | 2023-07-18 15:15:39 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-18 15:15:39 +0000 |
| commit | 712e40c409935eb03a584eb1b995ea9d24447cd0 (patch) | |
| tree | 0f93481b70dc0ddaa74cb41d77d0154d7746b08d /zebra/zebra_mpls.c | |
| parent | 4a986f20d74b5feb8db94ac9d6147950b6b5bd14 (diff) | |
| parent | f8d94e8a628d123f299a4f388c58c8f8b222c6c2 (diff) | |
Merge pull request #11831 from anlancs/fix/cleanup-default
zebra: remove unnecessary check for default vrf
Diffstat (limited to 'zebra/zebra_mpls.c')
| -rw-r--r-- | zebra/zebra_mpls.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/zebra/zebra_mpls.c b/zebra/zebra_mpls.c index ef109774d9..eac4fcc8e0 100644 --- a/zebra/zebra_mpls.c +++ b/zebra/zebra_mpls.c @@ -1029,8 +1029,6 @@ static void lsp_processq_del(struct work_queue *wq, void *data) return; zvrf = zebra_vrf_lookup_by_id(VRF_DEFAULT); - assert(zvrf); - lsp_table = zvrf->lsp_table; if (!lsp_table) // unexpected return; @@ -1776,9 +1774,6 @@ void zebra_mpls_lsp_dplane_result(struct zebra_dplane_ctx *ctx) case DPLANE_OP_LSP_UPDATE: /* Look for zebra LSP object */ zvrf = zebra_vrf_lookup_by_id(VRF_DEFAULT); - if (zvrf == NULL) - break; - lsp_table = zvrf->lsp_table; tmp_ile.in_label = label; @@ -2093,9 +2088,6 @@ void zebra_mpls_process_dplane_notify(struct zebra_dplane_ctx *ctx) /* Look for zebra LSP object */ zvrf = zebra_vrf_lookup_by_id(VRF_DEFAULT); - if (zvrf == NULL) - return; - lsp_table = zvrf->lsp_table; tmp_ile.in_label = dplane_ctx_get_in_label(ctx); |
