summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2022-05-16 08:02:58 -0400
committerGitHub <noreply@github.com>2022-05-16 08:02:58 -0400
commit950e7e6660fd394d70df1d11b9005443ca5083c5 (patch)
treecb2df0f544d5abbab3f068773ab9d991d4ad5eda
parent854dea850ca184fcee77733869706c75ebce9853 (diff)
parent0717f2d83c416d5e23b9654a60b8c5b0e4d28ab4 (diff)
Merge pull request #11207 from anlancs/fix/zebra-remove-check-l3vni
zebra: remove unncecessary check for l3vni
-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;