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:
Thomas Haller 2016-01-19 22:05:09 +01:00
parent 213c20142c
commit b9ee515dc9

View file

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