bgpd: Drop redundant assignment for aspath segment type and length

They are already initialized via assegment_new().

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
This commit is contained in:
Donatas Abraitis 2023-10-05 22:46:54 +03:00
parent 580bc71aca
commit fc9a8da45e

View File

@ -1016,8 +1016,6 @@ static struct assegment *aspath_aggregate_as_set_add(struct aspath *aspath,
seg = seg->next; seg = seg->next;
seg->next = asset; seg->next = asset;
} }
asset->type = AS_SET;
asset->length = 1;
asset->as[0] = as; asset->as[0] = as;
} else { } else {
/* Check this AS value already exists or not. */ /* Check this AS value already exists or not. */