diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index 2430a52f14..44e5183ec2 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -6045,7 +6045,6 @@ check_connection_compatible (NMDevice *self, NMConnection *connection, GError ** const char *device_driver; guint num_patterns = 0; - /* interface_names */ patterns = nm_setting_match_get_interface_names (s_match, &num_patterns); if (!nm_wildcard_match_check (device_iface, patterns, num_patterns)) { nm_utils_error_set_literal (error, NM_UTILS_ERROR_CONNECTION_AVAILABLE_TEMPORARY, @@ -6053,50 +6052,56 @@ check_connection_compatible (NMDevice *self, NMConnection *connection, GError ** return FALSE; } - { /* kernel_command_line */ + { const char *const*proc_cmdline; - const char *const*proc_cmdline_i; - unsigned i; gboolean pos_patterns = FALSE; + guint i; patterns = nm_setting_match_get_kernel_command_lines (s_match, &num_patterns); proc_cmdline = nm_utils_proc_cmdline_split (); - for(i=0; i