Use asserts rather thank test where the values should definitely
not be NULL.
Signed-off-by: Pat Ruddy <pat@voltanet.io>
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) {
bool is_dup_detect = false;
bool is_router;
+ assert(mac);
is_router = !!CHECK_FLAG(flags, ZEBRA_MACIP_TYPE_ROUTER_FLAG);
/* Check if the remote neighbor itself is unknown or has a
char buf[ETHER_ADDR_STRLEN];
char buf2[INET6_ADDRSTRLEN];
+ assert(mac);
n = zebra_evpn_neigh_lookup(zevpn, ip);
if (!n) {
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.