summaryrefslogtreecommitdiff
path: root/zebra/zebra_vxlan.c
diff options
context:
space:
mode:
authoranlan_cs <vic.lan@pica8.com>2022-05-11 21:29:10 -0400
committeranlan_cs <vic.lan@pica8.com>2022-05-16 05:40:15 -0400
commit0717f2d83c416d5e23b9654a60b8c5b0e4d28ab4 (patch)
tree33e41633dae595cd79f014c99b8cc6f3ca214ba8 /zebra/zebra_vxlan.c
parent64643ba79ae2e4d853b3c2c6a74916a560c53538 (diff)
zebra: remove unncecessary check for l3vni
Since `l3vni` created by `zl3vni_add()` is always valid, remove the check for it. Signed-off-by: anlan_cs <vic.lan@pica8.com>
Diffstat (limited to 'zebra/zebra_vxlan.c')
-rw-r--r--zebra/zebra_vxlan.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/zebra/zebra_vxlan.c b/zebra/zebra_vxlan.c
index c5d3b8c8dc..2145a10aa8 100644
--- a/zebra/zebra_vxlan.c
+++ b/zebra/zebra_vxlan.c
@@ -5288,10 +5288,6 @@ int zebra_vxlan_process_vrf_vni_cmd(struct zebra_vrf *zvrf, vni_t vni,
/* add the L3-VNI to the global table */
zl3vni = zl3vni_add(vni, zvrf_id(zvrf));
- if (!zl3vni) {
- snprintf(err, err_str_sz, "Could not add L3-VNI");
- return -1;
- }
/* associate the vrf with vni */
zvrf->l3vni = vni;