zebra: Reduce unneeded lookup in rib_process

the lookup of the src_p and dest_p is not needed
since the values are never used.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
Donald Sharp 2022-01-14 12:37:23 -05:00
parent 898b4a6d3b
commit 085e8f8f6b

View File

@ -1088,9 +1088,7 @@ static void rib_process(struct route_node *rn)
rib_dest_t *dest; rib_dest_t *dest;
struct zebra_vrf *zvrf = NULL; struct zebra_vrf *zvrf = NULL;
struct vrf *vrf; struct vrf *vrf;
const struct prefix *p, *src_p;
srcdest_rnode_prefixes(rn, &p, &src_p);
vrf_id_t vrf_id = VRF_UNKNOWN; vrf_id_t vrf_id = VRF_UNKNOWN;
assert(rn); assert(rn);