]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd: Remove logically dead code assignment
authorDonald Sharp <sharpd@cumulusnetworks.com>
Sat, 4 May 2019 00:09:54 +0000 (20:09 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 3 May 2019 09:05:19 +0000 (05:05 -0400)
The label value is set to MPLS_LABEL_NONE at the start
of the function and we never modify it, testing it for
BGP_PREVENT_VRF_2_VRF_LEAK equality will never be true

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_mplsvpn.c

index d7cb84c32358d204edd93a1d62a11f9f6fee62bf..6eddd0e1e359f35c048eb04d1481371ddcf128c1 100644 (file)
@@ -319,9 +319,6 @@ void vpn_leak_zebra_vrf_label_withdraw(struct bgp *bgp, afi_t afi)
                           bgp->name_pretty, bgp->vrf_id);
        }
 
-       if (label == BGP_PREVENT_VRF_2_VRF_LEAK)
-               label = MPLS_LABEL_NONE;
-
        zclient_send_vrf_label(zclient, bgp->vrf_id, afi, label, ZEBRA_LSP_BGP);
        bgp->vpn_policy[afi].tovpn_zebra_vrf_label_last_sent = label;
 }