]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: remove unused variable 2054/head
authorQuentin Young <qlyoung@cumulusnetworks.com>
Wed, 11 Apr 2018 20:22:23 +0000 (16:22 -0400)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Fri, 13 Apr 2018 21:17:42 +0000 (17:17 -0400)
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
bgpd/bgp_packet.c

index 1a08a0512624409c48ee1cb286caf976e9446cf7..9ea2f22cec15c9ea0285abc54b7e79f218576963 100644 (file)
@@ -649,7 +649,6 @@ void bgp_notify_send_with_data(struct peer *peer, uint8_t code,
                               uint8_t sub_code, uint8_t *data, size_t datalen)
 {
        struct stream *s;
-       int length;
 
        /* Lock I/O mutex to prevent other threads from pushing packets */
        pthread_mutex_lock(&peer->io_mtx);
@@ -670,7 +669,7 @@ void bgp_notify_send_with_data(struct peer *peer, uint8_t code,
                stream_write(s, data, datalen);
 
        /* Set BGP packet length. */
-       length = bgp_packet_set_size(s);
+       bgp_packet_set_size(s);
 
        /* wipe output buffer */
        stream_fifo_clean(peer->obuf);