summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/devices/nm-device.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/devices/nm-device.c b/src/core/devices/nm-device.c
index a87ed3b853..3680c330f6 100644
--- a/src/core/devices/nm-device.c
+++ b/src/core/devices/nm-device.c
@@ -16101,12 +16101,10 @@ _set_state_full(NMDevice *self, NMDeviceState state, NMDeviceStateReason reason,
* userspace IPv6LL enabled.
*/
_dev_addrgenmode6_set(self, NM_IN6_ADDR_GEN_MODE_NONE);
- if (priv->sys_iface_state != NM_DEVICE_SYS_IFACE_STATE_MANAGED) {
+ if (priv->sys_iface_state != NM_DEVICE_SYS_IFACE_STATE_STATE_REMOVED) {
nm_device_cleanup(self,
reason,
- priv->sys_iface_state == NM_DEVICE_SYS_IFACE_STATE_REMOVED
- ? CLEANUP_TYPE_REMOVED
- : CLEANUP_TYPE_KEEP);
+ CLEANUP_TYPE_REMOVED);
} else
nm_device_cleanup(self, reason, CLEANUP_TYPE_DECONFIGURE);