From: Igor Ryzhov Date: Tue, 13 Oct 2020 21:02:48 +0000 (+0300) Subject: ospfd: remove dead code X-Git-Tag: frr-7.5~4^2~5 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=54c812164cc347abb7aef9c27016e34fece635de;p=mirror%2Ffrr.git 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 --- diff --git a/ospfd/ospfd.c b/ospfd/ospfd.c index 97edc2f320..60eb4d0e24 100644 --- a/ospfd/ospfd.c +++ b/ospfd/ospfd.c @@ -393,9 +393,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); } @@ -412,9 +409,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); }