nm-checkpoint: skip unmanage state check on unrealized devices

The "activate" label is used only for unrealized software devices that
should be recreated. Move the label to skip useless checks.
This commit is contained in:
Francesco Giudici
2019-03-15 19:03:24 +01:00
parent 6621820a70
commit b159a0da82

View File

@@ -253,7 +253,6 @@ nm_checkpoint_rollback (NMCheckpoint *self)
goto next_dev;
}
activate:
/* Manage the device again if needed */
if ( nm_device_get_unmanaged_flags (device, NM_UNMANAGED_USER_EXPLICIT)
&& dev_checkpoint->unmanaged_explicit != NM_UNMAN_FLAG_OP_SET_UNMANAGED) {
@@ -276,6 +275,7 @@ activate:
goto next_dev;
}
activate:
if (dev_checkpoint->applied_connection) {
gboolean need_update, need_activation;