From eebb22513c55772cadb5b5d63ed81ab00cd1d7c5 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 24 Sep 2020 08:20:24 -0400 Subject: [PATCH] bgpd: Remove dest variable from route_out_vty_flowspec The dest variable was never really used. Just remove from the code base. Signed-off-by: Donald Sharp --- bgpd/bgp_flowspec_vty.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/bgpd/bgp_flowspec_vty.c b/bgpd/bgp_flowspec_vty.c index 798bce8219..3b7fb649a9 100644 --- a/bgpd/bgp_flowspec_vty.c +++ b/bgpd/bgp_flowspec_vty.c @@ -268,12 +268,7 @@ void route_vty_out_flowspec(struct vty *vty, const struct prefix *p, json_object *json_ecom_path = NULL; json_object *json_time_path = NULL; char timebuf[BGP_UPTIME_LEN]; - struct bgp_dest *dest = NULL; - if (path) - dest = path->net; - if (dest) - bgp_dest_get_bgp_table_info(dest); if (p == NULL || p->family != AF_FLOWSPEC) return; if (json_paths) { -- 2.39.5