From 5829fea1b5bbbda03438b82db7698733ffc367af Mon Sep 17 00:00:00 2001 From: anlan_cs Date: Sat, 19 Oct 2024 13:32:49 +0800 Subject: [PATCH] zebra: remove useless code Signed-off-by: anlan_cs --- zebra/zebra_rib.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index 72421dc8ee15..4c1401124bc2 100644 --- a/zebra/zebra_rib.c +++ b/zebra/zebra_rib.c @@ -640,20 +640,16 @@ void rib_install_kernel(struct route_node *rn, struct route_entry *re, struct nexthop *nexthop; struct rib_table_info *info = srcdest_rnode_table_info(rn); struct zebra_vrf *zvrf = zebra_vrf_lookup_by_id(re->vrf_id); - const struct prefix *p, *src_p; enum zebra_dplane_result ret; rib_dest_t *dest = rib_dest_from_rnode(rn); - srcdest_rnode_prefixes(rn, &p, &src_p); - if (info->safi != SAFI_UNICAST) { for (ALL_NEXTHOPS(re->nhe->nhg, nexthop)) SET_FLAG(nexthop->flags, NEXTHOP_FLAG_FIB); return; } - /* * Install the resolved nexthop object first. */ @@ -1339,7 +1335,6 @@ static void rib_process(struct route_node *rn) if (CHECK_FLAG(re->status, ROUTE_ENTRY_CHANGED)) { proto_re_changed = re; if (!nexthop_active_update(rn, re, old_fib)) { - const struct prefix *p; struct rib_table_info *info; if (re->type == ZEBRA_ROUTE_TABLE) { @@ -1373,7 +1368,6 @@ static void rib_process(struct route_node *rn) } info = srcdest_rnode_table_info(rn); - srcdest_rnode_prefixes(rn, &p, NULL); zsend_route_notify_owner( rn, re, ZAPI_ROUTE_FAIL_INSTALL, info->afi, info->safi);