]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd: encode_label call, remove unnecessary braces
authorPhilippe Guibert <philippe.guibert@6wind.com>
Sun, 19 Mar 2023 17:26:41 +0000 (18:26 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 9 May 2023 19:00:57 +0000 (21:00 +0200)
Remove unnecessary braces.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_mplsvpn.c

index 63168f1e7a826ccbbbf38a5b340bb5418d3c3474..6c68fe0b44bd531b5ccc413ed1866a56556a47e5 100644 (file)
@@ -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));