]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: Fix value set but never used 1765/head
authorDonald Sharp <sharpd@cumulusnetworks.com>
Sat, 17 Feb 2018 19:59:32 +0000 (14:59 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Sat, 17 Feb 2018 19:59:32 +0000 (14:59 -0500)
The value 'pnt' was being set but never used.  If we need
this in the future it will be a simple thing to add back
in.

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

index e1e11e44ace97ff70f8a1136d31eb22971719ef0..1373afec4ec280173fbae1b795772de0501ccda2 100644 (file)
@@ -83,7 +83,7 @@ static void display_vrf_import_rt(struct vty *vty,
        case ECOMMUNITY_ENCODE_AS:
                eas.as = (*pnt++ << 8);
                eas.as |= (*pnt++);
-               pnt = ptr_get_be32(pnt, &eas.val);
+               ptr_get_be32(pnt, &eas.val);
 
                snprintf(rt_buf, RT_ADDRSTRLEN, "%u:%u", eas.as, eas.val);
 
@@ -195,7 +195,7 @@ static void display_import_rt(struct vty *vty, struct irt_node *irt,
        case ECOMMUNITY_ENCODE_AS:
                eas.as = (*pnt++ << 8);
                eas.as |= (*pnt++);
-               pnt = ptr_get_be32(pnt, &eas.val);
+               ptr_get_be32(pnt, &eas.val);
 
                snprintf(rt_buf, RT_ADDRSTRLEN, "%u:%u", eas.as, eas.val);