diff options
| author | Michael Biebl <biebl@debian.org> | 2017-01-17 20:25:47 +0100 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2017-01-17 20:25:47 +0100 |
| commit | bed53db3e064450b56e23ec654f40a3bafe58815 (patch) | |
| tree | 314508d6c904b1224dab2070e0cfdd5a02d7dd89 /libnm/nm-device-vlan.c | |
| parent | 7135a6e87c938139e3a5db121d62dcaa783345d1 (diff) | |
| parent | 58f8be580039b0575b197b9573a1c92745d96d30 (diff) | |
Merge tag 'upstream/1.5.90' into experimental
Upstream version 1.5.90
Diffstat (limited to 'libnm/nm-device-vlan.c')
| -rw-r--r-- | libnm/nm-device-vlan.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/libnm/nm-device-vlan.c b/libnm/nm-device-vlan.c index 330d6f4a..5728d404 100644 --- a/libnm/nm-device-vlan.c +++ b/libnm/nm-device-vlan.c @@ -28,7 +28,6 @@ #include "nm-utils.h" #include "nm-device-vlan.h" -#include "nm-device-private.h" #include "nm-object-private.h" G_DEFINE_TYPE (NMDeviceVlan, nm_device_vlan, NM_TYPE_DEVICE) @@ -66,7 +65,7 @@ nm_device_vlan_get_hw_address (NMDeviceVlan *device) { g_return_val_if_fail (NM_IS_DEVICE_VLAN (device), NULL); - return NM_DEVICE_VLAN_GET_PRIVATE (device)->hw_address; + return nm_str_not_empty (NM_DEVICE_VLAN_GET_PRIVATE (device)->hw_address); } /** @@ -167,12 +166,11 @@ get_hw_address (NMDevice *device) return nm_device_vlan_get_hw_address (NM_DEVICE_VLAN (device)); } -/***********************************************************/ +/*****************************************************************************/ static void nm_device_vlan_init (NMDeviceVlan *device) { - _nm_device_set_device_type (NM_DEVICE (device), NM_DEVICE_TYPE_VLAN); } static void @@ -241,8 +239,6 @@ nm_device_vlan_class_init (NMDeviceVlanClass *vlan_class) g_type_class_add_private (vlan_class, sizeof (NMDeviceVlanPrivate)); - _nm_object_class_add_interface (nm_object_class, NM_DBUS_INTERFACE_DEVICE_VLAN); - /* virtual methods */ object_class->finalize = finalize; object_class->get_property = get_property; |