From: Donald Sharp Date: Thu, 24 Sep 2020 12:20:24 +0000 (-0400) Subject: bgpd: Remove dest variable from route_out_vty_flowspec X-Git-Tag: base_7.6~515^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F7169%2Fhead;p=mirror%2Ffrr.git 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 --- 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) {