device: remove duplicate calls to get_generic_capabilities() during device construction

Fixes: 2236cc5eb8
This commit is contained in:
Thomas Haller 2016-05-09 17:49:25 +02:00
parent fc6b8ba1bf
commit a5fc83ad4e

View file

@ -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);