diff options
author | Pekka Pessi <Pekka.Pessi@nokia.com> | 2011-01-04 17:48:33 +0200 |
---|---|---|
committer | Aki Niemi <aki.niemi@nokia.com> | 2011-01-07 13:39:18 +0200 |
commit | e0b6a058a2b42095a753817ec6c030e618d9f540 (patch) | |
tree | 4bd926511c43714c25dc8c4230233987e36d8291 /drivers/isimodem/voicecall.c | |
parent | 593e74f7930221a41dcc901c0ebcc41651cb28d5 (diff) | |
download | ofono-e0b6a058a2b42095a753817ec6c030e618d9f540.tar.bz2 |
isimodem: use simplified client interface
Diffstat (limited to 'drivers/isimodem/voicecall.c')
-rw-r--r-- | drivers/isimodem/voicecall.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/isimodem/voicecall.c b/drivers/isimodem/voicecall.c index 79317616..c19e64df 100644 --- a/drivers/isimodem/voicecall.c +++ b/drivers/isimodem/voicecall.c @@ -119,13 +119,11 @@ static struct isi_call_req_ctx *isi_call_req(struct ofono_voicecall *ovc, irc->cb = cb; irc->data = data; - if (g_isi_client_send(ivc->client, req, len, ISI_CALL_TIMEOUT, - handler, irc, NULL) == NULL) { - g_free(irc); - return NULL; - } + if (g_isi_client_send(ivc->client, req, len, handler, irc, NULL)) + return irc; - return irc; + g_free(irc); + return NULL; } static void isi_ctx_queue(struct isi_call_req_ctx *irc, isi_call_req_step *next) |