summaryrefslogtreecommitdiff
path: root/src/devices/nm-device-bridge.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2015-12-02 09:56:17 +0100
committerThomas Haller <thaller@redhat.com>2015-12-04 18:28:00 +0100
commite7a860769536663f9ff26fc8eee8cfd5897dfd91 (patch)
tree7b62d4be5a9ed31b85637277e95111654a41658e /src/devices/nm-device-bridge.c
parenta39dc1cd4bba4837f1465ab95feeee4febcc6102 (diff)
downloadNetworkManager-e7a860769536663f9ff26fc8eee8cfd5897dfd91.tar.gz
device: don't return error from release_slave()
release_slave() should do the right thing and handle errors as good as it can. There is no value in propagating the error and it's not clear what the caller should do in face of a failure during release.
Diffstat (limited to 'src/devices/nm-device-bridge.c')
-rw-r--r--src/devices/nm-device-bridge.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/devices/nm-device-bridge.c b/src/devices/nm-device-bridge.c
index e152bb38b9..b8887f444b 100644
--- a/src/devices/nm-device-bridge.c
+++ b/src/devices/nm-device-bridge.c
@@ -356,13 +356,13 @@ enslave_slave (NMDevice *device,
return TRUE;
}
-static gboolean
+static void
release_slave (NMDevice *device,
NMDevice *slave,
gboolean configure)
{
NMDeviceBridge *self = NM_DEVICE_BRIDGE (device);
- gboolean success = TRUE;
+ gboolean success;
if (configure) {
success = nm_platform_link_release (NM_PLATFORM_GET,
@@ -382,7 +382,6 @@ release_slave (NMDevice *device,
}
g_object_notify (G_OBJECT (device), NM_DEVICE_BRIDGE_SLAVES);
- return success;
}
static gboolean