diff options
author | Thomas Haller <thaller@redhat.com> | 2015-10-20 17:39:35 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2015-10-20 17:41:25 +0200 |
commit | 77f43defbe6d1bac27d9450a8cbf54dd31a962bd (patch) | |
tree | 2b4d2132bbdb98afacf91107c03340b283c6a1e4 | |
parent | efa303ed82c9ef58999da749bfaf17aa2bd62e28 (diff) | |
download | NetworkManager-77f43defbe6d1bac27d9450a8cbf54dd31a962bd.tar.gz |
ifcfg-rh: remove unused variable in parse_ethtool_option()
(cherry picked from commit f840d9465f83ed1a5c559c2bd340068782c7d72e)
-rw-r--r-- | src/settings/plugins/ifcfg-rh/reader.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/settings/plugins/ifcfg-rh/reader.c b/src/settings/plugins/ifcfg-rh/reader.c index 203eea389c..97c5d47812 100644 --- a/src/settings/plugins/ifcfg-rh/reader.c +++ b/src/settings/plugins/ifcfg-rh/reader.c @@ -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]); |