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 <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2020-08-15 13:37:09 -04:00 committed by Donald Sharp
parent 8b6b6b694d
commit bc3cd39bc4

View File

@ -722,9 +722,8 @@ zebra_evpn_proc_sync_neigh_update(zebra_evpn_t *zevpn, zebra_neigh_t *n,
n->state, false /*force*/); n->state, false /*force*/);
old_bgp_ready = false; old_bgp_ready = false;
} }
if (n->mac) zebra_evpn_local_neigh_deref_mac(n,
zebra_evpn_local_neigh_deref_mac( false /*send_mac_update*/);
n, false /*send_mac_update*/);
} }
/* clear old fwd info */ /* clear old fwd info */
n->rem_seq = 0; n->rem_seq = 0;