From e7a860769536663f9ff26fc8eee8cfd5897dfd91 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 2 Dec 2015 09:56:17 +0100 Subject: 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. --- src/devices/nm-device-bridge.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/devices/nm-device-bridge.c') 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 -- cgit v1.2.1