mirror of git://git.sysmocom.de/ofono
ifxmodem: Remove atom if driver fails to init
This commit is contained in:
parent
979b244fcf
commit
86e64128fa
|
@ -163,8 +163,10 @@ static void xrat_support_cb(gboolean ok, GAtResult *result, gpointer user_data)
|
||||||
{
|
{
|
||||||
struct ofono_radio_settings *rs = user_data;
|
struct ofono_radio_settings *rs = user_data;
|
||||||
|
|
||||||
if (!ok)
|
if (!ok) {
|
||||||
|
ofono_radio_settings_remove(rs);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
ofono_radio_settings_register(rs);
|
ofono_radio_settings_register(rs);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue