diff options
| author | Michael Biebl <biebl@debian.org> | 2017-01-17 20:25:09 +0100 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2017-01-17 20:25:09 +0100 |
| commit | 58f8be580039b0575b197b9573a1c92745d96d30 (patch) | |
| tree | 2c226233f623a0dcb529be0eb8cdf97e4a2ae0c0 /libnm/nm-device-bond.c | |
| parent | 45cb5bb3c0e6edb887cf69b417fcaf7053814a9b (diff) | |
New upstream version 1.5.90 upstream/1.5.90
Diffstat (limited to 'libnm/nm-device-bond.c')
| -rw-r--r-- | libnm/nm-device-bond.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/libnm/nm-device-bond.c b/libnm/nm-device-bond.c index 483d9d00..96334840 100644 --- a/libnm/nm-device-bond.c +++ b/libnm/nm-device-bond.c @@ -27,7 +27,6 @@ #include "nm-utils.h" #include "nm-device-bond.h" -#include "nm-device-private.h" #include "nm-object-private.h" #include "nm-core-internal.h" @@ -64,7 +63,7 @@ nm_device_bond_get_hw_address (NMDeviceBond *device) { g_return_val_if_fail (NM_IS_DEVICE_BOND (device), NULL); - return NM_DEVICE_BOND_GET_PRIVATE (device)->hw_address; + return nm_str_not_empty (NM_DEVICE_BOND_GET_PRIVATE (device)->hw_address); } /** @@ -130,15 +129,13 @@ get_hw_address (NMDevice *device) return nm_device_bond_get_hw_address (NM_DEVICE_BOND (device)); } -/***********************************************************/ +/*****************************************************************************/ static void nm_device_bond_init (NMDeviceBond *device) { NMDeviceBondPrivate *priv = NM_DEVICE_BOND_GET_PRIVATE (device); - _nm_device_set_device_type (NM_DEVICE (device), NM_DEVICE_TYPE_BOND); - priv->slaves = g_ptr_array_new (); } @@ -213,8 +210,6 @@ nm_device_bond_class_init (NMDeviceBondClass *bond_class) g_type_class_add_private (bond_class, sizeof (NMDeviceBondPrivate)); - _nm_object_class_add_interface (nm_object_class, NM_DBUS_INTERFACE_DEVICE_BOND); - /* virtual methods */ object_class->dispose = dispose; object_class->finalize = finalize; |