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 0b3ba99409)
This commit is contained in:
Thomas Haller 2017-03-16 12:21:19 +01:00 committed by Beniamino Galvani
parent 58c9a41959
commit 9a322b4e19

View file

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