summaryrefslogtreecommitdiffstats
path: root/src/cdma-connman.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2012-01-18 11:54:42 -0600
committerDenis Kenzior <denkenz@gmail.com>2012-01-18 12:21:36 -0600
commitcd3edbf98455fe6c7d9c3a1cb57e1b424eab1796 (patch)
tree923e93d9b3617029ec45bde857c70dda7797119d /src/cdma-connman.c
parent15ef5861c5555ab64fa4edc0db1324d8f3d1bf9f (diff)
downloadofono-cd3edbf98455fe6c7d9c3a1cb57e1b424eab1796.tar.bz2
cdma-connman: Use __ofono_atom_find
Diffstat (limited to 'src/cdma-connman.c')
-rw-r--r--src/cdma-connman.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/cdma-connman.c b/src/cdma-connman.c
index 51143f76..0c8b0614 100644
--- 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) {