diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-07-08 12:09:21 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-07-08 12:09:21 -0400 |
| commit | 2b57b9483420059dc7a826abe33b626a66bb5dfe (patch) | |
| tree | 5e94be4d14d406f00f5c36c80ba708965542426d /pimd/pim_instance.c | |
| parent | 76f17a8cc4346efabe5f87b5b2578ed6c8ee6fbf (diff) | |
pimd: Remove unnecessary alloc failures
Remove from pim unnecessary alloc failure testing
as that alloc failure will cause an assert.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_instance.c')
| -rw-r--r-- | pimd/pim_instance.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/pimd/pim_instance.c b/pimd/pim_instance.c index cb70ee7904..5121dc94ca 100644 --- a/pimd/pim_instance.c +++ b/pimd/pim_instance.c @@ -69,8 +69,6 @@ static struct pim_instance *pim_instance_init(struct vrf *vrf) char hash_name[64]; pim = XCALLOC(MTYPE_PIM_PIM_INSTANCE, sizeof(struct pim_instance)); - if (!pim) - return NULL; pim_if_init(pim); @@ -102,12 +100,6 @@ static struct pim_instance *pim_instance_init(struct vrf *vrf) } pim->static_routes = list_new(); - if (!pim->static_routes) { - zlog_err("%s %s: failure: static_routes=list_new()", __FILE__, - __PRETTY_FUNCTION__); - pim_instance_terminate(pim); - return NULL; - } pim->static_routes->del = (void (*)(void *))pim_static_route_free; pim->send_v6_secondary = 1; |
