summaryrefslogtreecommitdiffstats
path: root/drivers/calypsomodem/voicecall.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/calypsomodem/voicecall.c')
-rw-r--r--drivers/calypsomodem/voicecall.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/calypsomodem/voicecall.c b/drivers/calypsomodem/voicecall.c
index 204ed14c..01be9907 100644
--- a/drivers/calypsomodem/voicecall.c
+++ b/drivers/calypsomodem/voicecall.c
@@ -64,14 +64,10 @@ static void calypso_template(struct ofono_voicecall *vc, const char *cmd,
struct voicecall_data *vd = ofono_voicecall_get_data(vc);
struct cb_data *cbd = cb_data_new(cb, data);
- if (cbd == NULL)
- goto error;
-
if (g_at_chat_send(vd->chat, cmd, none_prefix,
calypso_generic_cb, cbd, g_free) > 0)
return;
-error:
g_free(cbd);
CALLBACK_WITH_FAILURE(cb, data);