From 4d19a911c574ccd4ebc0aa9d6e5e838ba5425875 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Fri, 25 Oct 2019 07:05:11 -0400 Subject: [PATCH] pimd: All paths have already derefed pim->global_scope.bsrp_table All paths leading to this point in the code have already deref'ed the pim->global_scope.bsrp_table. No point in testing for validness now. This was caught by Coverity. Signed-off-by: Donald Sharp --- pimd/pim_bsm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pimd/pim_bsm.c b/pimd/pim_bsm.c index 9d42666b92..1383e3db11 100644 --- a/pimd/pim_bsm.c +++ b/pimd/pim_bsm.c @@ -290,8 +290,7 @@ void pim_bsm_proc_free(struct pim_instance *pim) pim_free_bsgrp_data(bsgrp); } - if (pim->global_scope.bsrp_table) - route_table_finish(pim->global_scope.bsrp_table); + route_table_finish(pim->global_scope.bsrp_table); } static bool is_hold_time_elapsed(void *data) -- 2.39.5