summaryrefslogtreecommitdiffstats
path: root/drivers/isimodem/devinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/isimodem/devinfo.c')
-rw-r--r--drivers/isimodem/devinfo.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/isimodem/devinfo.c b/drivers/isimodem/devinfo.c
index 3bf05f47..62dd2d1e 100644
--- a/drivers/isimodem/devinfo.c
+++ b/drivers/isimodem/devinfo.c
@@ -205,8 +205,10 @@ static void reachable_cb(const GIsiMessage *msg, void *data)
{
struct ofono_devinfo *info = data;
- if (g_isi_msg_error(msg) < 0)
+ if (g_isi_msg_error(msg) < 0) {
+ ofono_devinfo_remove(info);
return;
+ }
ISI_VERSION_DBG(msg);