summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-10-25 10:26:08 +0200
committerThomas Haller <thaller@redhat.com>2016-10-27 11:53:18 +0200
commit39cbe4cf895300e228da62e7ac90b243e2698c6c (patch)
treed72ae1f73bfe126d3b5f864fb8ac45a58033dd48
parent322253ad6be13fc4b7871e5c0f33cc03cc088807 (diff)
downloadNetworkManager-39cbe4cf895300e228da62e7ac90b243e2698c6c.tar.gz
config: remove unused error variable from nm_config_device_state_load()
-rw-r--r--src/nm-config.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nm-config.c b/src/nm-config.c
index 458265b507..92ef0468cd 100644
--- a/src/nm-config.c
+++ b/src/nm-config.c
@@ -1943,14 +1943,13 @@ nm_config_device_state_load (NMConfig *self,
NMConfigDeviceStateData *device_state;
char path[NM_STRLEN (NM_CONFIG_DEVICE_STATE_DIR) + 60];
gs_unref_keyfile GKeyFile *kf = NULL;
- gs_free_error GError *error = NULL;
g_return_val_if_fail (ifindex > 0, NULL);
nm_sprintf_buf (path, "%s/%d", NM_CONFIG_DEVICE_STATE_DIR, ifindex);
kf = nm_config_create_keyfile ();
- if (!g_key_file_load_from_file (kf, path, G_KEY_FILE_NONE, &error))
+ if (!g_key_file_load_from_file (kf, path, G_KEY_FILE_NONE, NULL))
g_clear_pointer (&kf, g_key_file_unref);
device_state = _config_device_state_data_new (ifindex, kf);