summaryrefslogtreecommitdiff
path: root/bgpd/bgpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'bgpd/bgpd.c')
-rw-r--r--bgpd/bgpd.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c
index bd2f998f..cb760d90 100644
--- a/bgpd/bgpd.c
+++ b/bgpd/bgpd.c
@@ -1780,15 +1780,6 @@ bgp_create (as_t *as, const char *name)
return bgp;
}
-/* Return master of BGP. */
-struct bgp_master *
-bgp_get_master ()
-{
- if (bm)
- return bm;
- return NULL;
-}
-
/* Return first entry of BGP. */
struct bgp *
bgp_get_default ()
@@ -4870,14 +4861,11 @@ bgp_init ()
void
bgp_terminate ()
{
- struct bgp_master *bm;
struct bgp *bgp;
struct peer *peer;
struct listnode *nn;
struct listnode *mm;
- bm = bgp_get_master ();
-
LIST_LOOP (bm->bgp, bgp, nn)
LIST_LOOP (bgp->peer, peer, mm)
if (peer->status == Established)