diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/modem.c | 6 | ||||
-rw-r--r-- | src/ofono.h | 3 |
2 files changed, 3 insertions, 6 deletions
diff --git a/src/modem.c b/src/modem.c index eb200ea1..2c0d0e60 100644 --- a/src/modem.c +++ b/src/modem.c @@ -180,11 +180,9 @@ struct ofono_atom *__ofono_modem_find_atom(struct ofono_modem *modem, return NULL; } -void __ofono_modem_remove_atom(struct ofono_modem *modem, - struct ofono_atom *atom) +void __ofono_atom_free(struct ofono_atom *atom) { - if (modem == NULL) - return; + struct ofono_modem *modem = atom->modem; modem->atoms = g_slist_remove(modem->atoms, atom); diff --git a/src/ofono.h b/src/ofono.h index 34b1fdaa..0c03a2fb 100644 --- a/src/ofono.h +++ b/src/ofono.h @@ -123,8 +123,7 @@ void __ofono_atom_register(struct ofono_atom *atom, void (*unregister)(struct ofono_atom *)); void __ofono_atom_unregister(struct ofono_atom *atom); -void __ofono_modem_remove_atom(struct ofono_modem *modem, - struct ofono_atom *atom); +void __ofono_atom_free(struct ofono_atom *atom); #include <ofono/call-barring.h> #include <ofono/call-forwarding.h> |