From: Donald Sharp Date: Sat, 15 Aug 2020 17:37:09 +0000 (-0400) Subject: zebra: n->mac is derefed in all paths X-Git-Tag: base_7.6~434^2~3 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=bc3cd39bc4d1cbaf0180b3e9839d30c6427459e6;p=mirror%2Ffrr.git zebra: n->mac is derefed in all paths No need to check for n->mac existence as that all paths leading to this code have n->mac already derefed. Signed-off-by: Donald Sharp --- diff --git a/zebra/zebra_evpn_neigh.c b/zebra/zebra_evpn_neigh.c index 6a76a475e6..860dc5b054 100644 --- a/zebra/zebra_evpn_neigh.c +++ b/zebra/zebra_evpn_neigh.c @@ -722,9 +722,8 @@ zebra_evpn_proc_sync_neigh_update(zebra_evpn_t *zevpn, zebra_neigh_t *n, n->state, false /*force*/); old_bgp_ready = false; } - if (n->mac) - zebra_evpn_local_neigh_deref_mac( - n, false /*send_mac_update*/); + zebra_evpn_local_neigh_deref_mac(n, + false /*send_mac_update*/); } /* clear old fwd info */ n->rem_seq = 0;