lifecycle: remove redundant lif_state_upsert() call

this will be handled by lif_state_ref_if(), which also updates the
refcounting.
This commit is contained in:
Ariadne Conill 2020-09-09 16:00:53 -06:00
parent be9857f66f
commit e6c6f49143

View file

@ -364,8 +364,6 @@ lif_lifecycle_run(const struct lif_execute_opts *opts, struct lif_interface *ifa
if (!lif_lifecycle_run_phase(opts, iface, "post-up", lifname, up)) if (!lif_lifecycle_run_phase(opts, iface, "post-up", lifname, up))
return false; return false;
lif_state_upsert(state, lifname, iface);
lif_state_ref_if(state, lifname, iface); lif_state_ref_if(state, lifname, iface);
} }
else else