eigrpd, isisd, lib, ospfd: no effect (cppcheck)

Assignment of function parameter has no effect outside the function.

Signed-off-by: F. Aragon <paco@voltanet.io>
This commit is contained in:
paco 2018-06-19 10:17:03 +02:00
parent ed892e530d
commit 5f18adf01b
No known key found for this signature in database
GPG Key ID: FD112A8C7E6A5E4A
4 changed files with 0 additions and 8 deletions

View File

@ -944,8 +944,6 @@ void eigrp_packet_free(struct eigrp_packet *ep)
THREAD_OFF(ep->t_retrans_timer);
XFREE(MTYPE_EIGRP_PACKET, ep);
ep = NULL;
}
/* EIGRP Header verification. */

View File

@ -288,7 +288,6 @@ void isis_adj_state_change(struct isis_adjacency *adj,
if (del)
isis_delete_adj(adj);
adj = NULL;
} else if (circuit->circ_type == CIRCUIT_T_P2P) {
del = false;
for (level = IS_LEVEL_1; level <= IS_LEVEL_2; level++) {
@ -326,8 +325,6 @@ void isis_adj_state_change(struct isis_adjacency *adj,
if (del)
isis_delete_adj(adj);
adj = NULL;
}
return;

View File

@ -269,7 +269,6 @@ static int fpt_halt(struct frr_pthread *fpt, void **res)
{
thread_add_event(fpt->master, &fpt_finish, fpt, 0, NULL);
pthread_join(fpt->thread, res);
fpt = NULL;
return 0;
}

View File

@ -144,8 +144,6 @@ void ospf_packet_free(struct ospf_packet *op)
stream_free(op->s);
XFREE(MTYPE_OSPF_PACKET, op);
op = NULL;
}
struct ospf_fifo *ospf_fifo_new()