]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: Remove dest variable from route_out_vty_flowspec
authorDonald Sharp <sharpd@nvidia.com>
Thu, 24 Sep 2020 12:20:24 +0000 (08:20 -0400)
committerIgor Ryzhov <iryzhov@nfware.com>
Tue, 6 Oct 2020 12:54:25 +0000 (15:54 +0300)
The dest variable was never really used.  Just remove
from the code base.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
bgpd/bgp_flowspec_vty.c

index 798bce82190933c6fb367685cfe58461d313d63a..3b7fb649a9c5334047f18d04d1c41755b9757ad6 100644 (file)
@@ -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) {