summaryrefslogtreecommitdiff
path: root/src/devices/nm-device-ethernet.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2019-07-17 13:55:10 +0200
committerThomas Haller <thaller@redhat.com>2019-07-17 13:55:13 +0200
commit7644b1844336e9de0282e2425dd83de9416c29a1 (patch)
tree201ba93bbb94380bc661150714e4cdfd89e9d16b /src/devices/nm-device-ethernet.c
parentda72f276cd067c76c38b6cf3d706e20b7da366f5 (diff)
downloadNetworkManager-7644b1844336e9de0282e2425dd83de9416c29a1.tar.gz
device: move check for config "no-auto-default" to NMDevice's new_default_connection()
Only NMDeviceEthernet implements new_default_connection(). Anyway, it makes only sense to do this precheck by the caller first, and not by each implementation.
Diffstat (limited to 'src/devices/nm-device-ethernet.c')
-rw-r--r--src/devices/nm-device-ethernet.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/devices/nm-device-ethernet.c b/src/devices/nm-device-ethernet.c
index 9b2faf856f..0d45dfdeda 100644
--- a/src/devices/nm-device-ethernet.c
+++ b/src/devices/nm-device-ethernet.c
@@ -1435,9 +1435,6 @@ new_default_connection (NMDevice *self)
gs_free char *uuid = NULL;
guint i, n_connections;
- if (nm_config_get_no_auto_default_for_device (nm_config_get (), self))
- return NULL;
-
perm_hw_addr = nm_device_get_permanent_hw_address (self);
iface = nm_device_get_iface (self);