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