From c2a6595014c33592a541654b396c8c3f2f36284e Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Tue, 21 Jul 2020 05:21:28 +0900 Subject: network: introduce link_save_and_clean() --- src/network/networkd-link-bus.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/network/networkd-link-bus.c') diff --git a/src/network/networkd-link-bus.c b/src/network/networkd-link-bus.c index be19671505..ad114e1173 100644 --- a/src/network/networkd-link-bus.c +++ b/src/network/networkd-link-bus.c @@ -629,10 +629,9 @@ int bus_link_method_reconfigure(sd_bus_message *message, void *userdata, sd_bus_ return r; link_set_state(l, LINK_STATE_INITIALIZED); - r = link_save(l); + r = link_save_and_clean(l); if (r < 0) return r; - link_clean(l); return sd_bus_reply_method_return(message, NULL); } -- cgit v1.2.3