nhrpd: Cleanup set but unused variables

There existed some variables set but never used.  Clean this up.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2020-02-24 08:47:46 -05:00
parent 6e3e2c6d5f
commit 8ba9026b95

View File

@ -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,
while (nhrp_cie_pull(&extpl, pp->hdr,
&cie_nbma,
&cie_protocol))
!= NULL) {
&cie_protocol) != NULL) {
if (sockunion_same(&p->vc->remote.nbma,
&cie_nbma))
goto err;