From f840d9465f83ed1a5c559c2bd340068782c7d72e Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Tue, 20 Oct 2015 17:39:35 +0200 Subject: [PATCH] ifcfg-rh: remove unused variable in parse_ethtool_option() --- src/settings/plugins/ifcfg-rh/reader.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/settings/plugins/ifcfg-rh/reader.c b/src/settings/plugins/ifcfg-rh/reader.c index 57de73faaa..f3dd226d47 100644 --- a/src/settings/plugins/ifcfg-rh/reader.c +++ b/src/settings/plugins/ifcfg-rh/reader.c @@ -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]);