summaryrefslogtreecommitdiffstats
path: root/drivers/cdmamodem/voicecall.c
diff options
context:
space:
mode:
authorJeevaka Badrappan <jeevaka.badrappan@elektrobit.com>2011-01-29 05:34:43 -0800
committerMarcel Holtmann <marcel@holtmann.org>2011-01-29 18:39:37 +0100
commitf9b34de3d41deb4c9f5cd50aa6dc9dc7bd186b00 (patch)
tree8426673b59c48a33f91bc371182c9d36d61f4289 /drivers/cdmamodem/voicecall.c
parent124a9b1f0a9af8c1e4da5ed2fb8f0e88cd8e3fd0 (diff)
downloadofono-f9b34de3d41deb4c9f5cd50aa6dc9dc7bd186b00.tar.bz2
cdmamodem: remove NULL check
Diffstat (limited to 'drivers/cdmamodem/voicecall.c')
-rw-r--r--drivers/cdmamodem/voicecall.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/cdmamodem/voicecall.c b/drivers/cdmamodem/voicecall.c
index 94ec74b6..cabed6ac 100644
--- a/drivers/cdmamodem/voicecall.c
+++ b/drivers/cdmamodem/voicecall.c
@@ -54,16 +54,12 @@ static void cdma_template(const char *cmd, struct ofono_cdma_voicecall *vc,
struct voicecall_data *vd = ofono_cdma_voicecall_get_data(vc);
struct cb_data *cbd = cb_data_new(cb, data);
- if (cbd == NULL)
- goto error;
-
cbd->user = vc;
if (g_at_chat_send(vd->chat, cmd, none_prefix,
result_cb, cbd, g_free) > 0)
return;
-error:
g_free(cbd);
CALLBACK_WITH_FAILURE(cb, data);