diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-04-11 22:22:23 +0200 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-04-13 23:17:42 +0200 |
commit | bd6b2706b31f49df13927a055e2e824d3357ce6a (patch) | |
tree | 65d4b171a6ffa4d06394041875d146934eefcb49 /bgpd/bgp_packet.c | |
parent | bgpd: verify that multipath infos are set (diff) | |
download | frr-bd6b2706b31f49df13927a055e2e824d3357ce6a.tar.xz frr-bd6b2706b31f49df13927a055e2e824d3357ce6a.zip |
bgpd: remove unused variable
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_packet.c')
-rw-r--r-- | bgpd/bgp_packet.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bgpd/bgp_packet.c b/bgpd/bgp_packet.c index 1a08a0512..9ea2f22ce 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); |