mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
zebra: return void zebra_mpls_lsp_install
zebra_mpls_lsp_install() returned integer is never checked. Return void instead. Signed-off-by: Dmytro Shytyi <dmytro.shytyi@6wind.com>
This commit is contained in:
parent
229da537e6
commit
f62ee81d1e
|
@ -2196,7 +2196,7 @@ void zebra_mpls_process_dplane_notify(struct zebra_dplane_ctx *ctx)
|
|||
/*
|
||||
* Install dynamic LSP entry.
|
||||
*/
|
||||
int zebra_mpls_lsp_install(struct zebra_vrf *zvrf, struct route_node *rn,
|
||||
void zebra_mpls_lsp_install(struct zebra_vrf *zvrf, struct route_node *rn,
|
||||
struct route_entry *re)
|
||||
{
|
||||
struct route_table *table;
|
||||
|
@ -2204,23 +2204,20 @@ int zebra_mpls_lsp_install(struct zebra_vrf *zvrf, struct route_node *rn,
|
|||
|
||||
table = zvrf->fec_table[family2afi(PREFIX_FAMILY(&rn->p))];
|
||||
if (!table)
|
||||
return -1;
|
||||
return;
|
||||
|
||||
/* See if there is a configured label binding for this FEC. */
|
||||
fec = fec_find(table, &rn->p);
|
||||
if (!fec || fec->label == MPLS_INVALID_LABEL)
|
||||
return 0;
|
||||
return;
|
||||
|
||||
/* We cannot install a label forwarding entry if local label is the
|
||||
* implicit-null label.
|
||||
*/
|
||||
if (fec->label == MPLS_LABEL_IMPLICIT_NULL)
|
||||
return 0;
|
||||
return;
|
||||
|
||||
if (lsp_install(zvrf, fec->label, rn, re))
|
||||
return -1;
|
||||
|
||||
return 0;
|
||||
lsp_install(zvrf, fec->label, rn, re);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -146,7 +146,7 @@ int zebra_mpls_write_label_block_config(struct vty *vty, struct zebra_vrf *vrf);
|
|||
/*
|
||||
* Install dynamic LSP entry.
|
||||
*/
|
||||
int zebra_mpls_lsp_install(struct zebra_vrf *zvrf, struct route_node *rn,
|
||||
void zebra_mpls_lsp_install(struct zebra_vrf *zvrf, struct route_node *rn,
|
||||
struct route_entry *re);
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue