From e6c6f49143e4aa119c30e4d27035dcd83e8fe542 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Wed, 9 Sep 2020 16:00:53 -0600 Subject: [PATCH] lifecycle: remove redundant lif_state_upsert() call this will be handled by lif_state_ref_if(), which also updates the refcounting. --- libifupdown/lifecycle.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libifupdown/lifecycle.c b/libifupdown/lifecycle.c index 96c895b..5d50248 100644 --- a/libifupdown/lifecycle.c +++ b/libifupdown/lifecycle.c @@ -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)) return false; - lif_state_upsert(state, lifname, iface); - lif_state_ref_if(state, lifname, iface); } else