diff options
author | Aki Niemi <aki.niemi@nokia.com> | 2010-04-27 15:10:55 +0300 |
---|---|---|
committer | Aki Niemi <aki.niemi@nokia.com> | 2010-04-27 23:21:48 +0300 |
commit | c123a9b5ba691755dcd054c1990a585190ee3af8 (patch) | |
tree | e2928ea61bd62af7480c47cfd4489ec30beb81a9 /drivers/isimodem/isimodem.c | |
parent | a03d11fec71c35364ffe0d328379533ad8491f5d (diff) |
Fix remove ops in isimodem drivers
Diffstat (limited to 'drivers/isimodem/isimodem.c')
-rw-r--r-- | drivers/isimodem/isimodem.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/isimodem/isimodem.c b/drivers/isimodem/isimodem.c index dfc9b0b8..d60bb919 100644 --- a/drivers/isimodem/isimodem.c +++ b/drivers/isimodem/isimodem.c @@ -285,11 +285,10 @@ static void isi_modem_remove(struct ofono_modem *modem) { struct isi_data *isi = ofono_modem_get_data(modem); - DBG("(%p) with %s", modem, isi ? isi->ifname : NULL); - - if (isi == NULL) + if (!isi) return; + ofono_modem_set_data(modem, NULL); g_isi_client_destroy(isi->client); g_free(isi); } |