From: Igor Ryzhov Date: Tue, 13 Oct 2020 21:02:48 +0000 (+0300) Subject: ospfd: remove dead code X-Git-Tag: base_7.6~340^2~5 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=5e28025a5b3ea9871029c94d76dfd823d59d0906;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 918f0b202b..4ac1fb2992 100644 --- a/ospfd/ospfd.c +++ b/ospfd/ospfd.c @@ -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); }