From 8ba9026b954aa1e0f61e0a9a1145d87d9bbe5312 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Mon, 24 Feb 2020 08:47:46 -0500 Subject: [PATCH] nhrpd: Cleanup set but unused variables There existed some variables set but never used. Clean this up. Signed-off-by: Donald Sharp --- nhrpd/nhrp_peer.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/nhrpd/nhrp_peer.c b/nhrpd/nhrp_peer.c index c5e985cdac..2d6c263582 100644 --- a/nhrpd/nhrp_peer.c +++ b/nhrpd/nhrp_peer.c @@ -755,10 +755,9 @@ static void nhrp_peer_forward(struct nhrp_peer *p, if ((type == NHRP_EXTENSION_REVERSE_TRANSIT_NHS) == (packet_types[hdr->type].type == PACKET_REPLY)) { /* Check NHS list for forwarding loop */ - while ((cie = nhrp_cie_pull(&extpl, pp->hdr, - &cie_nbma, - &cie_protocol)) - != NULL) { + while (nhrp_cie_pull(&extpl, pp->hdr, + &cie_nbma, + &cie_protocol) != NULL) { if (sockunion_same(&p->vc->remote.nbma, &cie_nbma)) goto err; -- 2.39.5