summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2017-03-16 12:21:19 +0100
committerBeniamino Galvani <bgalvani@redhat.com>2017-04-03 13:28:37 +0200
commitcd7c79e83f85150dce05dde1e7ef4b4303ca146e (patch)
tree3553944f7b006dca4461a1d5fc6d8e4d67a44120
parent1eebc0ca0145d0b7ed1641e9d053ee9065e91ed3 (diff)
downloadNetworkManager-cd7c79e83f85150dce05dde1e7ef4b4303ca146e.tar.gz
default-route-manager: simplify determining synced flag in _ipx_update_default_route()
No change in behavior at all. The same logic applies, but this should be simpler to understand. (cherry picked from commit 0b3ba99409c135716292b6141d2161d395bca46b)
-rw-r--r--src/nm-default-route-manager.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nm-default-route-manager.c b/src/nm-default-route-manager.c
index 2fd2c7db47..c1327ece02 100644
--- a/src/nm-default-route-manager.c
+++ b/src/nm-default-route-manager.c
@@ -770,9 +770,8 @@ _ipx_update_default_route (const VTableIP *vtable, NMDefaultRouteManager *self,
default_route = &rt.rx;
never_default = TRUE;
- synced = TRUE;
- } else
- synced = default_route && !is_assumed;
+ }
+ synced = !is_assumed;
} else {
NMConnection *connection = nm_active_connection_get_applied_connection ((NMActiveConnection *) vpn);