mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-09 06:30:21 +01:00
ifcfg-rh: remove unused variable in parse_ethtool_option()
(cherry picked from commit f840d9465f)
This commit is contained in:
parent
efa303ed82
commit
77f43defbe
1 changed files with 0 additions and 4 deletions
|
|
@ -3512,7 +3512,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;
|
||||
|
|
@ -3581,14 +3580,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