summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-04-04 13:53:28 +0200
committerThomas Haller <thaller@redhat.com>2016-04-04 15:47:21 +0200
commit47c6b6db07b8628e17e517d26f7ec68050712b1b (patch)
treed72ae61d99b8443d27900b73d4e0cdd9d77709c2
parente42fe89242d3d502ff1a824eb2524595830ea6fc (diff)
downloadNetworkManager-47c6b6db07b8628e17e517d26f7ec68050712b1b.tar.gz
device: remove ignored dummy variable
-rw-r--r--src/devices/nm-device.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c
index 619eda9bba..2edc9b1f4b 100644
--- a/src/devices/nm-device.c
+++ b/src/devices/nm-device.c
@@ -9980,7 +9980,6 @@ static void
_cleanup_generic_post (NMDevice *self, CleanupType cleanup_type)
{
NMDevicePrivate *priv = NM_DEVICE_GET_PRIVATE (self);
- NMDeviceStateReason ignored = NM_DEVICE_STATE_REASON_NONE;
priv->default_route.v4_has = FALSE;
priv->default_route.v6_has = FALSE;
@@ -10005,8 +10004,8 @@ _cleanup_generic_post (NMDevice *self, CleanupType cleanup_type)
/* Clean up IP configs; this does not actually deconfigure the
* interface; the caller must flush routes and addresses explicitly.
*/
- nm_device_set_ip4_config (self, NULL, 0, TRUE, TRUE, &ignored);
- nm_device_set_ip6_config (self, NULL, TRUE, TRUE, &ignored);
+ nm_device_set_ip4_config (self, NULL, 0, TRUE, TRUE, NULL);
+ nm_device_set_ip6_config (self, NULL, TRUE, TRUE, NULL);
g_clear_object (&priv->con_ip4_config);
g_clear_object (&priv->dev_ip4_config);
g_clear_object (&priv->ext_ip4_config);