summaryrefslogtreecommitdiff
path: root/pimd/pim_igmpv3.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-07-08 12:09:21 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-07-08 12:09:21 -0400
commit2b57b9483420059dc7a826abe33b626a66bb5dfe (patch)
tree5e94be4d14d406f00f5c36c80ba708965542426d /pimd/pim_igmpv3.c
parent76f17a8cc4346efabe5f87b5b2578ed6c8ee6fbf (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_igmpv3.c')
-rw-r--r--pimd/pim_igmpv3.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/pimd/pim_igmpv3.c b/pimd/pim_igmpv3.c
index 5ccad39b33..b32d71cc0d 100644
--- a/pimd/pim_igmpv3.c
+++ b/pimd/pim_igmpv3.c
@@ -457,11 +457,6 @@ struct igmp_source *source_new(struct igmp_group *group,
}
src = XCALLOC(MTYPE_PIM_IGMP_GROUP_SOURCE, sizeof(*src));
- if (!src) {
- zlog_warn("%s %s: XCALLOC() failure", __FILE__,
- __PRETTY_FUNCTION__);
- return 0; /* error, not found, could not create */
- }
src->t_source_timer = NULL;
src->source_group = group; /* back pointer */