mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-04 19:10:17 +01:00
ifcfg-rh: remove unused variable in parse_ethtool_option()
This commit is contained in:
parent
fd7d57be03
commit
f840d9465f
1 changed files with 0 additions and 4 deletions
|
|
@ -3563,7 +3563,6 @@ parse_ethtool_option (const char *value, NMSettingWiredWakeOnLan *out_flags, cha
|
|||
gs_strfreev char **words = NULL;
|
||||
const char **iter = NULL, *flag;
|
||||
gboolean has_flags = FALSE;
|
||||
gboolean has_password = FALSE;
|
||||
|
||||
if (!value || !value[0])
|
||||
return;
|
||||
|
|
@ -3632,14 +3631,11 @@ parse_ethtool_option (const char *value, NMSettingWiredWakeOnLan *out_flags, cha
|
|||
|
||||
*out_flags = wol_flags;
|
||||
} else {
|
||||
has_password = TRUE;
|
||||
|
||||
if (!iter[0]) {
|
||||
PARSE_WARNING ("Wake-on-LAN password missing");
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
g_clear_pointer (out_password, g_free);
|
||||
if (nm_utils_hwaddr_valid (iter[0], ETH_ALEN))
|
||||
*out_password = g_strdup (iter[0]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue