No need to check if the variable is NULL and return after assert.
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
struct bgp_node *prn = NULL;
assert(table);
- if (!table)
- return NULL;
if ((safi == SAFI_MPLS_VPN) || (safi == SAFI_ENCAP)
|| (safi == SAFI_EVPN)) {
#endif
assert(bgp_static);
- if (!bgp_static)
- return;
rn = bgp_afi_node_get(bgp->rib[afi][safi], afi, safi, p, NULL);
q = PAF_PKTQ(paf);
assert(q);
- if (!q)
- return;
LIST_REMOVE(paf, pkt_train);
paf->next_pkt_to_send = NULL;
/* bgp argument is absolutely required */
assert(bgp);
- if (!bgp)
- return NULL;
/* Allocate new peer. */
peer = XCALLOC(MTYPE_BGP_PEER, sizeof(struct peer));