Skip to content

Commit e88e1c0

Browse files
authored
Merge pull request FRRouting#13314 from anlancs/bgp/remove-check-group
bgpd: Remove unnecessary check for groups
2 parents 73f6fec + 06af066 commit e88e1c0

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

bgpd/bgp_updgrp.c

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1961,15 +1961,8 @@ void update_group_adjust_peer(struct peer_af *paf)
19611961
}
19621962

19631963
updgrp = update_group_find(paf);
1964-
if (!updgrp) {
1964+
if (!updgrp)
19651965
updgrp = update_group_create(paf);
1966-
if (!updgrp) {
1967-
flog_err(EC_BGP_UPDGRP_CREATE,
1968-
"couldn't create update group for peer %s",
1969-
paf->peer->host);
1970-
return;
1971-
}
1972-
}
19731966

19741967
old_subgrp = paf->subgroup;
19751968

@@ -1992,11 +1985,8 @@ void update_group_adjust_peer(struct peer_af *paf)
19921985
}
19931986

19941987
subgrp = update_subgroup_find(updgrp, paf);
1995-
if (!subgrp) {
1988+
if (!subgrp)
19961989
subgrp = update_subgroup_create(updgrp);
1997-
if (!subgrp)
1998-
return;
1999-
}
20001990

20011991
update_subgroup_add_peer(subgrp, paf, 1);
20021992
if (BGP_DEBUG(update_groups, UPDATE_GROUPS))

0 commit comments

Comments
 (0)