mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-08 11:19:16 +02:00
device: remove duplicate setting of device's driver property
Fixes:4dbaac4ba2(cherry picked from commit59f37f31d9)
This commit is contained in:
parent
0fd3ec81fd
commit
3b69a05fa0
1 changed files with 1 additions and 8 deletions
|
|
@ -2140,8 +2140,7 @@ device_link_changed (NMDevice *self)
|
||||||
_notify (self, PROP_UDI);
|
_notify (self, PROP_UDI);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (g_strcmp0 (info.driver, priv->driver)) {
|
if (!nm_streq0 (info.driver, priv->driver)) {
|
||||||
/* Update driver to what udev gives us */
|
|
||||||
g_free (priv->driver);
|
g_free (priv->driver);
|
||||||
priv->driver = g_strdup (info.driver);
|
priv->driver = g_strdup (info.driver);
|
||||||
_notify (self, PROP_DRIVER);
|
_notify (self, PROP_DRIVER);
|
||||||
|
|
@ -2152,12 +2151,6 @@ device_link_changed (NMDevice *self)
|
||||||
_notify (self, PROP_MTU);
|
_notify (self, PROP_MTU);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (info.driver && g_strcmp0 (priv->driver, info.driver) != 0) {
|
|
||||||
g_free (priv->driver);
|
|
||||||
priv->driver = g_strdup (info.driver);
|
|
||||||
_notify (self, PROP_DRIVER);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (ifindex == nm_device_get_ip_ifindex (self))
|
if (ifindex == nm_device_get_ip_ifindex (self))
|
||||||
_stats_update_counters_from_pllink (self, &info);
|
_stats_update_counters_from_pllink (self, &info);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue