From 7cd502014e92ac6e193ef9c208a3532c7199e14d Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 15 Aug 2018 15:56:10 -0400 Subject: pimd: Trust backet->data The backet->data cannot be NULL, no need to check for it. Signed-off-by: Donald Sharp --- pimd/pim_cmd.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'pimd') diff --git a/pimd/pim_cmd.c b/pimd/pim_cmd.c index 6eb4303fb..7c45ce261 100644 --- a/pimd/pim_cmd.c +++ b/pimd/pim_cmd.c @@ -2795,9 +2795,6 @@ static int pim_print_pnc_cache_walkcb(struct hash_backet *backet, void *arg) ifindex_t first_ifindex; struct interface *ifp = NULL; - if (!pnc) - return CMD_SUCCESS; - for (nh_node = pnc->nexthop; nh_node; nh_node = nh_node->next) { first_ifindex = nh_node->ifindex; ifp = if_lookup_by_index(first_ifindex, pim->vrf_id); -- cgit v1.2.3