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.
This commit is contained in:
Thomas Haller 2017-03-16 12:21:19 +01:00
parent 6466b5da6a
commit 0b3ba99409

View file

@ -781,9 +781,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);