ztemodem: Remove atom if driver fails to init

This commit is contained in:
Denis Kenzior 2012-03-26 16:50:11 -05:00
parent e9fc8c6411
commit ab4cfc1070
1 changed files with 3 additions and 1 deletions

View File

@ -157,8 +157,10 @@ static void zsnt_support_cb(gboolean ok, GAtResult *result, gpointer user_data)
{
struct ofono_radio_settings *rs = user_data;
if (!ok)
if (!ok) {
ofono_radio_settings_remove(rs);
return;
}
ofono_radio_settings_register(rs);
}