mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 19:39:28 +00:00
ldpd: Remove double set of lif
The lif variable was being set in the if statement and immediately copied into from xf. No need to do this twice. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
200334ecbb
commit
865c8d5c44
@ -1688,7 +1688,7 @@ merge_l2vpn(struct ldpd_conf *xconf, struct l2vpn *l2vpn, struct l2vpn *xl)
|
||||
}
|
||||
RB_FOREACH_SAFE(xf, l2vpn_if_head, &xl->if_tree, ftmp) {
|
||||
/* find new interfaces */
|
||||
if ((lif = l2vpn_if_find(l2vpn, xf->ifname)) == NULL) {
|
||||
if (l2vpn_if_find(l2vpn, xf->ifname) == NULL) {
|
||||
COPY(lif, xf);
|
||||
RB_INSERT(l2vpn_if_head, &l2vpn->if_tree, lif);
|
||||
lif->l2vpn = l2vpn;
|
||||
|
Loading…
Reference in New Issue
Block a user