From 2bdd4461c1edf81d3a94be9c41d3326bc9f4112c Mon Sep 17 00:00:00 2001 From: Pat Ruddy Date: Wed, 12 Aug 2020 13:01:22 +0100 Subject: zebra: clean up SA warning in EVPN code Use asserts rather thank test where the values should definitely not be NULL. Signed-off-by: Pat Ruddy --- zebra/zebra_evpn_mac.c | 1 + 1 file changed, 1 insertion(+) (limited to 'zebra/zebra_evpn_mac.c') diff --git a/zebra/zebra_evpn_mac.c b/zebra/zebra_evpn_mac.c index a74fdd2243..b9cc02a276 100644 --- a/zebra/zebra_evpn_mac.c +++ b/zebra/zebra_evpn_mac.c @@ -1902,6 +1902,7 @@ int zebra_evpn_add_update_local_mac(struct zebra_vrf *zvrf, zebra_evpn_t *zevpn, bool inform_dataplane = false; bool new_static = false; + assert(ifp); /* Check if we need to create or update or it is a NO-OP. */ mac = zebra_evpn_mac_lookup(zevpn, macaddr); if (!mac) { -- cgit v1.2.3