]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: Reduce unneeded lookup in rib_process
authorDonald Sharp <sharpd@nvidia.com>
Fri, 14 Jan 2022 17:37:23 +0000 (12:37 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Tue, 18 Jan 2022 13:39:40 +0000 (08:39 -0500)
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>
zebra/zebra_rib.c

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