From a5fc83ad4ef6986704a13284b9b28f58d61a6caa Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Mon, 9 May 2016 17:49:25 +0200 Subject: [PATCH] device: remove duplicate calls to get_generic_capabilities() during device construction Fixes: 2236cc5eb857791b6c78e7989e1cf63f548020fa --- src/devices/nm-device.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index bc7ebcbe08..c56e052288 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -9130,9 +9130,6 @@ constructor (GType type, priv->udi = g_strdup_printf ("/virtual/device/placeholder/%d", id++); } - if (NM_DEVICE_GET_CLASS (self)->get_generic_capabilities) - priv->capabilities |= NM_DEVICE_GET_CLASS (self)->get_generic_capabilities (self); - if (priv->ifindex > 0) { priv->physical_port_id = nm_platform_link_get_physical_port_id (NM_PLATFORM_GET, priv->ifindex); priv->dev_id = nm_platform_link_get_dev_id (NM_PLATFORM_GET, priv->ifindex);