projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ad5db2
)
emulator: Use __ofono_atom_find
author
Denis Kenzior
<denkenz@gmail.com>
Wed, 18 Jan 2012 17:43:59 +0000
(11:43 -0600)
committer
Denis Kenzior
<denkenz@gmail.com>
Wed, 18 Jan 2012 18:21:36 +0000
(12:21 -0600)
src/emulator.c
patch
|
blob
|
history
diff --git
a/src/emulator.c
b/src/emulator.c
index
1cfc296
..
262e782
100644
(file)
--- 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);
}