diff options
author | Denis Kenzior <denkenz@gmail.com> | 2012-01-18 11:43:59 -0600 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2012-01-18 12:21:36 -0600 |
commit | 7e426f96cc3324b1fd0bf28dd1c73e4cd9e1b855 (patch) | |
tree | 2642f80a374b44b59ebdb12c338262b019b50993 /src/emulator.c | |
parent | 2ad5db2e99448fb95e2bc6debc4c36592122fe4d (diff) | |
download | ofono-7e426f96cc3324b1fd0bf28dd1c73e4cd9e1b855.tar.bz2 |
emulator: Use __ofono_atom_find
Diffstat (limited to 'src/emulator.c')
-rw-r--r-- | src/emulator.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/emulator.c b/src/emulator.c index 1cfc2969..262e782c 100644 --- a/src/emulator.c +++ b/src/emulator.c @@ -336,15 +336,12 @@ static struct ofono_call *find_call_with_status(struct ofono_emulator *em, int status) { struct ofono_modem *modem = __ofono_atom_get_modem(em->atom); - struct ofono_atom *vc_atom; struct ofono_voicecall *vc; - vc_atom = __ofono_modem_find_atom(modem, OFONO_ATOM_TYPE_VOICECALL); - if (vc_atom == NULL) + vc = __ofono_atom_find(OFONO_ATOM_TYPE_VOICECALL, modem); + if (vc == NULL) return NULL; - vc = __ofono_atom_get_data(vc_atom); - return __ofono_voicecall_find_call_with_status(vc, status); } |