summaryrefslogtreecommitdiffstats
path: root/pimd/pim_oil.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-07-08 18:09:21 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-07-08 18:09:21 +0200
commit2b57b9483420059dc7a826abe33b626a66bb5dfe (patch)
tree5e94be4d14d406f00f5c36c80ba708965542426d /pimd/pim_oil.c
parentMerge pull request #2630 from donaldsharp/hashables (diff)
downloadfrr-2b57b9483420059dc7a826abe33b626a66bb5dfe.tar.xz
frr-2b57b9483420059dc7a826abe33b626a66bb5dfe.zip
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_oil.c')
-rw-r--r--pimd/pim_oil.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/pimd/pim_oil.c b/pimd/pim_oil.c
index d49484f86..f0f336fb7 100644
--- a/pimd/pim_oil.c
+++ b/pimd/pim_oil.c
@@ -107,11 +107,6 @@ void pim_oil_init(struct pim_instance *pim)
pim_oil_equal, hash_name);
pim->channel_oil_list = list_new();
- if (!pim->channel_oil_list) {
- zlog_err("%s %s: failure: channel_oil_list=list_new()",
- __FILE__, __PRETTY_FUNCTION__);
- return;
- }
pim->channel_oil_list->del = (void (*)(void *))pim_channel_oil_free;
pim->channel_oil_list->cmp =
(int (*)(void *, void *))pim_channel_oil_compare;
@@ -182,10 +177,6 @@ struct channel_oil *pim_channel_oil_add(struct pim_instance *pim,
}
c_oil = XCALLOC(MTYPE_PIM_CHANNEL_OIL, sizeof(*c_oil));
- if (!c_oil) {
- zlog_err("PIM XCALLOC(%zu) failure", sizeof(*c_oil));
- return NULL;
- }
c_oil->oil.mfcc_mcastgrp = sg->grp;
c_oil->oil.mfcc_origin = sg->src;