diff options
author | anlan_cs <vic.lan@pica8.com> | 2022-05-14 03:02:11 +0200 |
---|---|---|
committer | anlan_cs <vic.lan@pica8.com> | 2022-05-14 05:31:52 +0200 |
commit | 81157cbd10d3ebc6d3d31cb5617dadea1c98d454 (patch) | |
tree | fdfbbd9a17dfbc9c17ee1c34259529196cb1ef6e /zebra/zebra_evpn_mac.c | |
parent | Merge pull request #11198 from opensourcerouting/fix/show_ip_bgp_l2vpn_evpn_r... (diff) | |
download | frr-81157cbd10d3ebc6d3d31cb5617dadea1c98d454.tar.xz frr-81157cbd10d3ebc6d3d31cb5617dadea1c98d454.zip |
zebra: remove unnecessary check for "zevpn_vrf"
The global vrf in zebra is always non-NULL. In general, it is bound to
default vrf by `zebra_vrf_init()`, at other times bound to some specific
vrf. Anyway, non-NULL.
So remove all redundant checkings for the returned value of
`zebra_vrf_get_evpn()`.
Additionally, remove the unnecessary check for `zvrf` in
`zebra_vxlan_cleanup_tables()`.
Signed-off-by: anlan_cs <vic.lan@pica8.com>
Diffstat (limited to 'zebra/zebra_evpn_mac.c')
-rw-r--r-- | zebra/zebra_evpn_mac.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/zebra/zebra_evpn_mac.c b/zebra/zebra_evpn_mac.c index 86364d08a..3bdd70e20 100644 --- a/zebra/zebra_evpn_mac.c +++ b/zebra/zebra_evpn_mac.c @@ -625,9 +625,6 @@ void zebra_evpn_print_mac(struct zebra_mac *mac, void *ctxt, json_object *json) char up_str[MONOTIME_STRLEN]; zvrf = zebra_vrf_get_evpn(); - if (!zvrf) - return; - vty = (struct vty *)ctxt; prefix_mac2str(&mac->macaddr, buf1, sizeof(buf1)); |