mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 04:26:12 +00:00
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:
parent
9466ef38cc
commit
5e28025a5b
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user