diff options
Diffstat (limited to 'drivers/huaweimodem/voicecall.c')
-rw-r--r-- | drivers/huaweimodem/voicecall.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/huaweimodem/voicecall.c b/drivers/huaweimodem/voicecall.c index aef2a116..a30513a2 100644 --- a/drivers/huaweimodem/voicecall.c +++ b/drivers/huaweimodem/voicecall.c @@ -99,14 +99,10 @@ static void huawei_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, huawei_generic_cb, cbd, g_free) > 0) return; -error: g_free(cbd); CALLBACK_WITH_FAILURE(cb, data); |