From: Donatas Abraitis Date: Thu, 5 Oct 2023 19:46:54 +0000 (+0300) Subject: bgpd: Drop redundant assignment for aspath segment type and length X-Git-Tag: base_9.1~1^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F14535%2Fhead;p=mirror%2Ffrr.git bgpd: Drop redundant assignment for aspath segment type and length They are already initialized via assegment_new(). Signed-off-by: Donatas Abraitis --- diff --git a/bgpd/bgp_aspath.c b/bgpd/bgp_aspath.c index fc13085437..0e70de9d46 100644 --- a/bgpd/bgp_aspath.c +++ b/bgpd/bgp_aspath.c @@ -1016,8 +1016,6 @@ static struct assegment *aspath_aggregate_as_set_add(struct aspath *aspath, seg = seg->next; seg->next = asset; } - asset->type = AS_SET; - asset->length = 1; asset->as[0] = as; } else { /* Check this AS value already exists or not. */