supplicant: remove check for iface instance after nm_supplicant_interface_new()

A plain constructor for a GObject cannot fail.
This commit is contained in:
Thomas Haller 2016-01-19 22:05:09 +01:00
parent 004edecc81
commit a8165611a8

View file

@ -88,11 +88,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_log_dbg (LOGD_SUPPLICANT, "(%s): returning existing supplicant interface", ifname);
}