]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: remove unnecessary check for evpn
authoranlan_cs <vic.lan@pica8.com>
Fri, 6 May 2022 09:52:12 +0000 (05:52 -0400)
committeranlan_cs <vic.lan@pica8.com>
Sun, 8 May 2022 13:25:12 +0000 (09:25 -0400)
commit879e43a550d01d7e2726031a66907e2e5a8762b6
tree3ac76213f5faa0d6b14927cfea0e7056361ac8a3
parent50f1f2e724f8614ada1a1a02dd28f1ff3af06e08
bgpd: remove unnecessary check for evpn

When `bgp_evpn_new()` is called, the `bgp` parameter MUST be non-NULL,
remove this unnecessary check and remove the NULL check for returned
`struct bgpevpn *`, which should be non-NULL.

And modify `import_rt_new()` in the same way.

Signed-off-by: anlan_cs <vic.lan@pica8.com>
bgpd/bgp_evpn.c
bgpd/bgp_evpn_vty.c