diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2025-03-07 11:22:03 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2025-03-07 11:48:05 -0500 |
| commit | 45e2f0fc6e1571cffdfc106faccafed76c1aac5e (patch) | |
| tree | 0aa0217af8fb29c172d872e9216cf28c954cdb2d /zebra/zebra_vxlan_if.c | |
| parent | b221fd5f6c556f52124f1247138c6de4ca8db447 (diff) | |
zebra: malloc functions cannot fail
Let's try to remember that when using a malloc function
it can never fail and as such testing for NULL does
nothing.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/zebra_vxlan_if.c')
| -rw-r--r-- | zebra/zebra_vxlan_if.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/zebra/zebra_vxlan_if.c b/zebra/zebra_vxlan_if.c index ea0be2f644..fe90b73113 100644 --- a/zebra/zebra_vxlan_if.c +++ b/zebra/zebra_vxlan_if.c @@ -659,8 +659,6 @@ int zebra_vxlan_if_vni_table_create(struct zebra_if *zif) vni_info = VNI_INFO_FROM_ZEBRA_IF(zif); vni_info->vni_table = zebra_vxlan_vni_table_create(); - if (!vni_info->vni_table) - return -ENOMEM; return 0; } |
