summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2015-12-09 12:47:42 +0100
committerThomas Haller <thaller@redhat.com>2015-12-09 12:49:29 +0100
commitb9a35b69138691b59b12b221675dff3441f6d360 (patch)
tree26a3b3d3e5393b0f42fb8987e4771811a41e939c
parente967cbd0bfee929f7352ced380066e864782ca45 (diff)
downloadNetworkManager-b9a35b69138691b59b12b221675dff3441f6d360.tar.gz
device/trivial: rename variable
-rw-r--r--src/devices/nm-device.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c
index 8e6123a28c..8ff369e8a5 100644
--- a/src/devices/nm-device.c
+++ b/src/devices/nm-device.c
@@ -1439,7 +1439,7 @@ device_link_changed (NMDevice *self)
NMPlatformLink info;
const NMPlatformLink *pllink;
int ifindex;
- gboolean emit_link_initialized = FALSE;
+ gboolean just_initialized = FALSE;
gboolean was_up;
priv->device_link_changed_id = 0;
@@ -1530,14 +1530,15 @@ device_link_changed (NMDevice *self)
FALSE,
NM_DEVICE_STATE_REASON_NOW_MANAGED);
- emit_link_initialized = TRUE;
+ just_initialized = TRUE;
}
was_up = priv->up;
priv->up = NM_FLAGS_HAS (info.flags, IFF_UP);
if ( priv->platform_link_initialized
- && (emit_link_initialized || priv->up != was_up)) {
+ && ( just_initialized
+ || priv->up != was_up)) {
/* Manage externally-created software interfaces only when they are IFF_UP */
g_assert (priv->ifindex > 0);
@@ -1579,7 +1580,7 @@ device_link_changed (NMDevice *self)
}
}
- if (emit_link_initialized)
+ if (just_initialized)
g_signal_emit (self, signals[LINK_INITIALIZED], 0);
device_recheck_slave_status (self, &info);