From 5beb42b9428feef7200aef4b3907682c7b16bcb2 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 6 May 2020 16:20:35 +0200 Subject: [PATCH] device: style fixes --- src/devices/nm-device.c | 55 ++++++++++++++++++++++------------------- 1 file changed, 30 insertions(+), 25 deletions(-) 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