diff options
| author | Pat Ruddy <pat@voltanet.io> | 2020-08-12 13:01:22 +0100 |
|---|---|---|
| committer | Pat Ruddy <pat@voltanet.io> | 2020-08-12 18:03:21 +0100 |
| commit | 2bdd4461c1edf81d3a94be9c41d3326bc9f4112c (patch) | |
| tree | d5c462f30ba89eb13546837b7d24a6727e6aa6b2 /zebra/zebra_evpn_mac.c | |
| parent | 707b76d79555dc2c5e130c6f2dc79827a54c112c (diff) | |
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 <pat@voltanet.io>
Diffstat (limited to 'zebra/zebra_evpn_mac.c')
| -rw-r--r-- | zebra/zebra_evpn_mac.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) { |
