ospfd: remove dead code

ospf_router_id_update checks for ospf->oi_running, but it'll never be 1
right after creation by ospf_new.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
This commit is contained in:
Igor Ryzhov 2020-10-14 00:02:48 +03:00
parent 9466ef38cc
commit 5e28025a5b

View File

@ -398,9 +398,6 @@ struct ospf *ospf_get(unsigned short instance, const char *name, bool *created)
ospf = ospf_new(instance, name);
ospf_add(ospf);
if (ospf->router_id_static.s_addr == INADDR_ANY)
ospf_router_id_update(ospf);
ospf_opaque_type11_lsa_init(ospf);
}
@ -417,9 +414,6 @@ struct ospf *ospf_get_instance(unsigned short instance, bool *created)
ospf = ospf_new(instance, NULL /* VRF_DEFAULT*/);
ospf_add(ospf);
if (ospf->router_id_static.s_addr == INADDR_ANY)
ospf_router_id_update(ospf);
ospf_opaque_type11_lsa_init(ospf);
}