summaryrefslogtreecommitdiff
path: root/src/nm-config.c
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2017-12-18 08:36:51 +0100
committerLubomir Rintel <lkundrak@v3.sk>2017-12-18 13:29:32 +0100
commit6672c5e92ea593db2fa58e42992714aebf315831 (patch)
tree0e5fc518bec9eb56d376fb450c60d242abb09627 /src/nm-config.c
parent0ae44fe7e28ea635f727ea524c31b590d26ebecc (diff)
downloadNetworkManager-6672c5e92ea593db2fa58e42992714aebf315831.tar.gz
all: get rid of a handful of unused-but-set variables
Diffstat (limited to 'src/nm-config.c')
-rw-r--r--src/nm-config.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/nm-config.c b/src/nm-config.c
index 97ae3f6f43..01449a5fe4 100644
--- a/src/nm-config.c
+++ b/src/nm-config.c
@@ -1383,7 +1383,6 @@ intern_config_write (const char *filename,
GKeyFile *keyfile;
gs_strfreev char **groups = NULL;
guint g, k;
- gboolean has_intern = FALSE;
gboolean success = FALSE;
GError *local = NULL;
@@ -1449,10 +1448,7 @@ intern_config_write (const char *filename,
value_set = g_key_file_get_value (keyfile_intern, group, key, NULL);
- if (is_intern) {
- has_intern = TRUE;
- g_key_file_set_value (keyfile, group, key, value_set);
- } else if (is_atomic)
+ if (is_intern || is_atomic)
g_key_file_set_value (keyfile, group, key, value_set);
else {
gs_free char *value_was = NULL;