summaryrefslogtreecommitdiffstats
path: root/pimd/pim_upstream.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_upstream.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_upstream.c')
-rw-r--r--pimd/pim_upstream.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/pimd/pim_upstream.c b/pimd/pim_upstream.c
index 9329d72ce..e3488b6a6 100644
--- a/pimd/pim_upstream.c
+++ b/pimd/pim_upstream.c
@@ -603,11 +603,6 @@ static struct pim_upstream *pim_upstream_new(struct pim_instance *pim,
struct pim_upstream *up;
up = XCALLOC(MTYPE_PIM_UPSTREAM, sizeof(*up));
- if (!up) {
- zlog_err("%s: PIM XCALLOC(%zu) failure", __PRETTY_FUNCTION__,
- sizeof(*up));
- return NULL;
- }
up->sg = *sg;
pim_str_sg_set(sg, up->sg_str);