mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 18:04:03 +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);
|
THREAD_OFF(ep->t_retrans_timer);
|
||||||
|
|
||||||
XFREE(MTYPE_EIGRP_PACKET, ep);
|
XFREE(MTYPE_EIGRP_PACKET, ep);
|
||||||
|
|
||||||
ep = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* EIGRP Header verification. */
|
/* EIGRP Header verification. */
|
||||||
|
@ -288,7 +288,6 @@ void isis_adj_state_change(struct isis_adjacency *adj,
|
|||||||
if (del)
|
if (del)
|
||||||
isis_delete_adj(adj);
|
isis_delete_adj(adj);
|
||||||
|
|
||||||
adj = NULL;
|
|
||||||
} else if (circuit->circ_type == CIRCUIT_T_P2P) {
|
} else if (circuit->circ_type == CIRCUIT_T_P2P) {
|
||||||
del = false;
|
del = false;
|
||||||
for (level = IS_LEVEL_1; level <= IS_LEVEL_2; level++) {
|
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)
|
if (del)
|
||||||
isis_delete_adj(adj);
|
isis_delete_adj(adj);
|
||||||
|
|
||||||
adj = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
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);
|
thread_add_event(fpt->master, &fpt_finish, fpt, 0, NULL);
|
||||||
pthread_join(fpt->thread, res);
|
pthread_join(fpt->thread, res);
|
||||||
fpt = NULL;
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -144,8 +144,6 @@ void ospf_packet_free(struct ospf_packet *op)
|
|||||||
stream_free(op->s);
|
stream_free(op->s);
|
||||||
|
|
||||||
XFREE(MTYPE_OSPF_PACKET, op);
|
XFREE(MTYPE_OSPF_PACKET, op);
|
||||||
|
|
||||||
op = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
struct ospf_fifo *ospf_fifo_new()
|
struct ospf_fifo *ospf_fifo_new()
|
||||||
|
Loading…
Reference in New Issue
Block a user