summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2015-10-07 17:40:34 +0200
committerBeniamino Galvani <bgalvani@redhat.com>2015-10-08 22:29:49 +0200
commit296ea386bf24aac2a48fb7cb6a629a4d437813cd (patch)
treef33999a615cc74f8738e26a97b9c434ab6e24a65
parente6d7fee5a617632acae02e12b1ec6156842df788 (diff)
downloadNetworkManager-296ea386bf24aac2a48fb7cb6a629a4d437813cd.tar.gz
device: get rid of ipv4ll_timeout_remove()
nm_clear_g_source() already does that.
-rw-r--r--src/devices/nm-device.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c
index fe48260a7d..c588ade47f 100644
--- a/src/devices/nm-device.c
+++ b/src/devices/nm-device.c
@@ -3176,17 +3176,6 @@ nm_device_check_ip_failed (NMDevice *self, gboolean may_fail)
/* IPv4LL stuff */
static void
-ipv4ll_timeout_remove (NMDevice *self)
-{
- NMDevicePrivate *priv = NM_DEVICE_GET_PRIVATE (self);
-
- if (priv->ipv4ll_timeout) {
- g_source_remove (priv->ipv4ll_timeout);
- priv->ipv4ll_timeout = 0;
- }
-}
-
-static void
ipv4ll_cleanup (NMDevice *self)
{
NMDevicePrivate *priv = NM_DEVICE_GET_PRIVATE (self);
@@ -3197,7 +3186,7 @@ ipv4ll_cleanup (NMDevice *self)
priv->ipv4ll = sd_ipv4ll_unref (priv->ipv4ll);
}
- ipv4ll_timeout_remove (self);
+ nm_clear_g_source (&priv->ipv4ll_timeout);
}
static NMIP4Config *
@@ -3278,7 +3267,7 @@ nm_device_handle_ipv4ll_event (sd_ipv4ll *ll, int event, void *data)
}
if (priv->ip4_state == IP_CONF) {
- ipv4ll_timeout_remove (self);
+ nm_clear_g_source (&priv->ipv4ll_timeout);
nm_device_activate_schedule_ip4_config_result (self, config);
} else if (priv->ip4_state == IP_DONE) {
if (!ip4_config_merge_and_apply (self, config, TRUE, NULL)) {