summaryrefslogtreecommitdiff
path: root/zebra/zebra_vxlan.c
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/zebra_vxlan.c')
-rw-r--r--zebra/zebra_vxlan.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/zebra/zebra_vxlan.c b/zebra/zebra_vxlan.c
index c27be4743e..13a58bc34a 100644
--- a/zebra/zebra_vxlan.c
+++ b/zebra/zebra_vxlan.c
@@ -3963,8 +3963,7 @@ int zebra_vxlan_local_mac_add_update(struct interface *ifp,
struct zebra_vrf *zvrf;
char buf[ETHER_ADDR_STRLEN];
- if (ifp == NULL)
- return -1;
+ assert(ifp);
/* We are interested in MACs only on ports or (port, VLAN) that
* map to an EVPN.