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_br.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_br.c')
| -rw-r--r-- | pimd/pim_br.c | 9 | 
1 files changed, 0 insertions, 9 deletions
diff --git a/pimd/pim_br.c b/pimd/pim_br.c index f297b0591d..6184ea12c4 100644 --- a/pimd/pim_br.c +++ b/pimd/pim_br.c @@ -64,10 +64,6 @@ void pim_br_set_pmbr(struct prefix_sg *sg, struct in_addr br)  	if (!pim_br) {  		pim_br = XCALLOC(MTYPE_PIM_BR, sizeof(*pim_br)); -		if (!pim_br) { -			zlog_err("PIM XCALLOC(%zu) failure", sizeof(*pim_br)); -			return; -		}  		pim_br->sg = *sg; @@ -100,9 +96,4 @@ void pim_br_clear_pmbr(struct prefix_sg *sg)  void pim_br_init(void)  {  	pim_br_list = list_new(); -	if (!pim_br_list) { -		zlog_err("%s: Failure to create pim_br_list", -			 __PRETTY_FUNCTION__); -		return; -	}  }  | 
