summaryrefslogtreecommitdiffstats
path: root/pimd
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-08-15 21:56:10 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-08-15 23:53:09 +0200
commit7cd502014e92ac6e193ef9c208a3532c7199e14d (patch)
tree1b9d04adaeb77ac08cf4079dde87d213a98dc142 /pimd
parentospfd: trust backet->data (diff)
downloadfrr-7cd502014e92ac6e193ef9c208a3532c7199e14d.tar.xz
frr-7cd502014e92ac6e193ef9c208a3532c7199e14d.zip
pimd: Trust backet->data
The backet->data cannot be NULL, no need to check for it. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd')
-rw-r--r--pimd/pim_cmd.c3
1 files changed, 0 insertions, 3 deletions
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);