summaryrefslogtreecommitdiffstats
path: root/drivers/atmodem/voicecall.c
diff options
context:
space:
mode:
authorJeevaka Badrappan <jeevaka.badrappan@elektrobit.com>2011-01-29 05:34:35 -0800
committerMarcel Holtmann <marcel@holtmann.org>2011-01-29 18:39:37 +0100
commit4258fb591599534f6447c1371e92427ccece5f51 (patch)
treecc63cb91c9421fbce447c1d13248b8abb59f9600 /drivers/atmodem/voicecall.c
parentac20890cc90e8a36ad1937e53bb19e2f528639d1 (diff)
downloadofono-4258fb591599534f6447c1371e92427ccece5f51.tar.bz2
atmodem: remove NULL check
Diffstat (limited to 'drivers/atmodem/voicecall.c')
-rw-r--r--drivers/atmodem/voicecall.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/atmodem/voicecall.c b/drivers/atmodem/voicecall.c
index 10cac425..a64269d1 100644
--- a/drivers/atmodem/voicecall.c
+++ b/drivers/atmodem/voicecall.c
@@ -374,9 +374,6 @@ static void at_dial(struct ofono_voicecall *vc,
struct cb_data *cbd = cb_data_new(cb, data);
char buf[256];
- if (cbd == NULL)
- goto error;
-
cbd->user = vc;
if (ph->type == 145)
@@ -401,7 +398,6 @@ static void at_dial(struct ofono_voicecall *vc,
atd_cb, cbd, g_free) > 0)
return;
-error:
g_free(cbd);
CALLBACK_WITH_FAILURE(cb, data);
@@ -598,9 +594,6 @@ static void at_send_dtmf(struct ofono_voicecall *vc, const char *dtmf,
int i;
char *buf;
- if (cbd == NULL)
- goto error;
-
cbd->user = vd;
/* strlen("+VTS=T;") = 7 + initial AT + null */