pimd: Refactor pim_find_primary_addr

The pim_find_primary_addr function just called 1 static function
that was called no where else.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2016-09-07 08:51:29 -04:00
parent fb5d6e2f41
commit 89f1d91ecc

View File

@ -573,7 +573,8 @@ void pim_if_addr_del_all_pim(struct interface *ifp)
} }
} }
static struct in_addr find_first_nonsec_addr(struct interface *ifp) struct in_addr
pim_find_primary_addr (struct interface *ifp)
{ {
struct connected *ifc; struct connected *ifc;
struct listnode *node; struct listnode *node;
@ -602,11 +603,6 @@ static struct in_addr find_first_nonsec_addr(struct interface *ifp)
return addr; return addr;
} }
struct in_addr pim_find_primary_addr(struct interface *ifp)
{
return find_first_nonsec_addr(ifp);
}
static int pim_iface_vif_index = 0; static int pim_iface_vif_index = 0;
static int static int