mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 11:40:08 +01: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->ap_support,
|
||||
start_now);
|
||||
if (iface) {
|
||||
g_hash_table_insert (priv->ifaces,
|
||||
(char *) nm_supplicant_interface_get_ifname (iface),
|
||||
iface);
|
||||
}
|
||||
g_hash_table_insert (priv->ifaces,
|
||||
(char *) nm_supplicant_interface_get_ifname (iface),
|
||||
iface);
|
||||
} else {
|
||||
/* 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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue