about summary refs log tree commit diff
path: root/src/nm-system.c
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd@luon.net>2014-04-26 20:55:09 +0200
committerSjoerd Simons <sjoerd@luon.net>2014-04-26 20:55:09 +0200
commit59c3714a494c3b3765657c0551ad82842d98a7d2 (patch)
treee4dcdf9791fc40581f02bfaf870c30b102b3133a /src/nm-system.c
parenta4256940da049f91bbbea5e53e469a59ea9c10f7 (diff)
Imported Upstream version 0.9.8.10 upstream/0.9.8.10
Diffstat (limited to 'src/nm-system.c')
-rw-r--r--src/nm-system.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/nm-system.c b/src/nm-system.c
index 7f6de912..39983424 100644
--- a/src/nm-system.c
+++ b/src/nm-system.c
@@ -1696,15 +1696,15 @@ nm_system_bond_enslave (gint master_ifindex,
 	g_assert (!nm_system_iface_is_up (slave_ifindex));
 
 	if (nm_system_iface_get_flags (slave_ifindex) & IFF_SLAVE) {
-		struct rtnl_link *link;
+		struct rtnl_link *lk;
 		int existing_master = -1;
 
 		/* Get the ifindex of the existing master device */
-		link = nm_netlink_index_to_rtnl_link (slave_ifindex);
-		g_warn_if_fail (link != NULL);
-		if (link) {
-			existing_master = rtnl_link_get_master (link);
-			rtnl_link_put (link);
+		lk = nm_netlink_index_to_rtnl_link (slave_ifindex);
+		g_warn_if_fail (lk != NULL);
+		if (lk) {
+			existing_master = rtnl_link_get_master (lk);
+			rtnl_link_put (lk);
 		}
 
 		if (existing_master > 0) {