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_igmpv3.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_igmpv3.c')
| -rw-r--r-- | pimd/pim_igmpv3.c | 5 |
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 */ |
