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:
15ef586
)
cdma-connman: Use __ofono_atom_find
author
Denis Kenzior
<denkenz@gmail.com>
Wed, 18 Jan 2012 17:54:42 +0000
(11:54 -0600)
committer
Denis Kenzior
<denkenz@gmail.com>
Wed, 18 Jan 2012 18:21:36 +0000
(12:21 -0600)
src/cdma-connman.c
patch
|
blob
|
history
diff --git
a/src/cdma-connman.c
b/src/cdma-connman.c
index
51143f7
..
0c8b061
100644
(file)
--- a/
src/cdma-connman.c
+++ b/
src/cdma-connman.c
@@
-342,14
+342,12
@@
static ofono_bool_t network_registered(struct ofono_cdma_connman *cm)
{
int status;
struct ofono_modem *modem = __ofono_atom_get_modem(cm->atom);
- struct ofono_atom *atom = __ofono_modem_find_atom(modem,
- OFONO_ATOM_TYPE_CDMA_NETREG);
struct ofono_cdma_netreg *cdma_netreg;
- if (atom == NULL)
+ cdma_netreg = __ofono_atom_find(OFONO_ATOM_TYPE_CDMA_NETREG, modem);
+ if (cdma_netreg == NULL)
return FALSE;
- cdma_netreg = __ofono_atom_get_data(atom);
status = ofono_cdma_netreg_get_status(cdma_netreg);
switch (status) {