]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: remove unncecessary check for l3vni
authoranlan_cs <vic.lan@pica8.com>
Thu, 12 May 2022 01:29:10 +0000 (21:29 -0400)
committeranlan_cs <vic.lan@pica8.com>
Mon, 16 May 2022 09:40:15 +0000 (05:40 -0400)
Since `l3vni` created by `zl3vni_add()` is always valid, remove the check
for it.

Signed-off-by: anlan_cs <vic.lan@pica8.com>
zebra/zebra_vxlan.c

index c5d3b8c8dc2a2ba301c5302238dedd1b09099e30..2145a10aa8e5e01ced002ae64832de5963d881e7 100644 (file)
@@ -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;