diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-06-13 19:36:54 -0400 | 
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-06-19 19:07:12 -0400 | 
| commit | 11884868d4b091a7e82e80258d676122239ad6b8 (patch) | |
| tree | f9810a5bc65c7d64fefa2f3259b2e0ab9ad4d3e5 /pimd/pim_assert.c | |
| parent | 43b8ca995b8ae5ea0e08ae74cdc0cf68cfa0feef (diff) | |
pimd: ALLOC functions cannot fail.
There is no need to check for ALLOC function failures
in the code base.  If we cannot get more memory we
assert.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_assert.c')
| -rw-r--r-- | pimd/pim_assert.c | 6 | 
1 files changed, 0 insertions, 6 deletions
diff --git a/pimd/pim_assert.c b/pimd/pim_assert.c index 438a0c9b64..228218e3a3 100644 --- a/pimd/pim_assert.c +++ b/pimd/pim_assert.c @@ -148,12 +148,6 @@ static int dispatch_assert(struct interface *ifp, struct in_addr source_addr,  	sg.src = source_addr;  	sg.grp = group_addr;  	ch = pim_ifchannel_add(ifp, &sg, 0, 0); -	if (!ch) { -		zlog_warn( -			"%s: (S,G)=%s failure creating channel on interface %s", -			__PRETTY_FUNCTION__, pim_str_sg_dump(&sg), ifp->name); -		return -1; -	}  	switch (ch->ifassert_state) {  	case PIM_IFASSERT_NOINFO:  | 
