summaryrefslogtreecommitdiffstats
path: root/src/voicecall.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2012-01-18 11:52:17 -0600
committerDenis Kenzior <denkenz@gmail.com>2012-01-18 12:21:36 -0600
commit15ef5861c5555ab64fa4edc0db1324d8f3d1bf9f (patch)
treedfb26723dc62470cdf12e02edf1d89709ccab7e8 /src/voicecall.c
parent688a788da568fe7c6665a8a5bac4296ce3cd004e (diff)
downloadofono-15ef5861c5555ab64fa4edc0db1324d8f3d1bf9f.tar.bz2
voicecall: Use __ofono_atom_find
Diffstat (limited to 'src/voicecall.c')
-rw-r--r--src/voicecall.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/voicecall.c b/src/voicecall.c
index 088bc577..094f41d8 100644
--- a/src/voicecall.c
+++ b/src/voicecall.c
@@ -3294,18 +3294,15 @@ static void emulator_atd_cb(struct ofono_emulator *em,
goto fail;
if (len == 3 && str[0] == '>' && str[1] == '1') {
- struct ofono_atom *mw_atom;
struct ofono_message_waiting *mw;
const struct ofono_phone_number *ph;
const char *num;
- mw_atom = __ofono_modem_find_atom(modem,
- OFONO_ATOM_TYPE_MESSAGE_WAITING);
-
- if (mw_atom == NULL)
+ mw = __ofono_atom_find(OFONO_ATOM_TYPE_MESSAGE_WAITING,
+ modem);
+ if (mw == NULL)
goto fail;
- mw = __ofono_atom_get_data(mw_atom);
ph = __ofono_message_waiting_get_mbdn(mw, 0);
if (ph == NULL)