From: Quentin Young Date: Wed, 11 Apr 2018 20:22:23 +0000 (-0400) Subject: bgpd: remove unused variable X-Git-Tag: frr-5.0-dev~52^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=bd6b2706b31f49df13927a055e2e824d3357ce6a;p=mirror%2Ffrr.git bgpd: remove unused variable Signed-off-by: Quentin Young --- diff --git a/bgpd/bgp_packet.c b/bgpd/bgp_packet.c index 1a08a05126..9ea2f22cec 100644 --- a/bgpd/bgp_packet.c +++ b/bgpd/bgp_packet.c @@ -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);