mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-07 13:08:10 +02:00
supplicant: remove check for iface instance after nm_supplicant_interface_new()
A plain constructor for a GObject cannot fail.
(cherry picked from commit a8165611a8)
This commit is contained in:
parent
213c20142c
commit
b9ee515dc9
1 changed files with 3 additions and 5 deletions
|
|
@ -87,11 +87,9 @@ nm_supplicant_manager_iface_get (NMSupplicantManager * self,
|
||||||
priv->fast_supported,
|
priv->fast_supported,
|
||||||
priv->ap_support,
|
priv->ap_support,
|
||||||
start_now);
|
start_now);
|
||||||
if (iface) {
|
g_hash_table_insert (priv->ifaces,
|
||||||
g_hash_table_insert (priv->ifaces,
|
(char *) nm_supplicant_interface_get_ifname (iface),
|
||||||
(char *) nm_supplicant_interface_get_ifname (iface),
|
iface);
|
||||||
iface);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
/* nm_supplicant_manager_iface_get() and release() implements no form of ref-counting
|
/* nm_supplicant_manager_iface_get() and release() implements no form of ref-counting
|
||||||
* to properly handle reusing a cached instance. It's also unclear whether that is
|
* to properly handle reusing a cached instance. It's also unclear whether that is
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue