diff options
| author | Philippe Guibert <philippe.guibert@6wind.com> | 2023-03-19 18:26:41 +0100 |
|---|---|---|
| committer | Philippe Guibert <philippe.guibert@6wind.com> | 2023-05-09 21:00:57 +0200 |
| commit | 9fa282eeb64362e5b12cfd09bd41d24ce6e5c04b (patch) | |
| tree | 946293dd833b1af5861c9fff961eff4c0dd8d069 | |
| parent | fab64b600a6d9a4feb636e346eecf97dee110cfe (diff) | |
bgpd: encode_label call, remove unnecessary braces
Remove unnecessary braces.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
| -rw-r--r-- | bgpd/bgp_mplsvpn.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bgpd/bgp_mplsvpn.c b/bgpd/bgp_mplsvpn.c index 63168f1e7a..6c68fe0b44 100644 --- a/bgpd/bgp_mplsvpn.c +++ b/bgpd/bgp_mplsvpn.c @@ -1529,11 +1529,10 @@ void vpn_leak_from_vrf_update(struct bgp *to_bgp, /* to */ } label_val = from_bgp->vpn_policy[afi].tovpn_label; - if (label_val == MPLS_LABEL_NONE) { + if (label_val == MPLS_LABEL_NONE) encode_label(MPLS_LABEL_IMPLICIT_NULL, &label); - } else { + else encode_label(label_val, &label); - } /* Set originator ID to "me" */ SET_FLAG(static_attr.flag, ATTR_FLAG_BIT(BGP_ATTR_ORIGINATOR_ID)); |
