mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-03 12:21:24 +00:00
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:
parent
ed892e530d
commit
5f18adf01b
@ -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. */
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user