networkd: remove duplicate call to manager_dirty (#3917)
authorSusant Sahani <ssahani@users.noreply.github.com>
Sun, 7 Aug 2016 09:23:32 +0000 (14:53 +0530)
committerLennart Poettering <lennart@poettering.net>
Sun, 7 Aug 2016 09:23:32 +0000 (11:23 +0200)
since link_dirty itself calls manager_dirty no need to
call it separately .

src/network/networkd-network.c

index 17bbe5d..49faba5 100644 (file)
@@ -395,10 +395,8 @@ int network_apply(Manager *manager, Network *network, Link *link) {
         if (!strv_isempty(network->dns) ||
             !strv_isempty(network->ntp) ||
             !strv_isempty(network->search_domains) ||
-            !strv_isempty(network->route_domains)) {
-                manager_dirty(manager);
+            !strv_isempty(network->route_domains))
                 link_dirty(link);
-        }
 
         return 0;
 }