summaryrefslogtreecommitdiffstats
path: root/drivers/atmodem/cbs.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/cbs.c
parentac20890cc90e8a36ad1937e53bb19e2f528639d1 (diff)
downloadofono-4258fb591599534f6447c1371e92427ccece5f51.tar.bz2
atmodem: remove NULL check
Diffstat (limited to 'drivers/atmodem/cbs.c')
-rw-r--r--drivers/atmodem/cbs.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/atmodem/cbs.c b/drivers/atmodem/cbs.c
index 9b5ae6c9..8cc3ef01 100644
--- a/drivers/atmodem/cbs.c
+++ b/drivers/atmodem/cbs.c
@@ -115,9 +115,6 @@ static void at_cbs_set_topics(struct ofono_cbs *cbs, const char *topics,
DBG("");
- if (cbd == NULL)
- goto error;
-
/* For the Qualcomm based devices it is required to clear
* the list of topics first. Otherwise setting the new
* topic ranges will fail.
@@ -145,7 +142,6 @@ static void at_cbs_set_topics(struct ofono_cbs *cbs, const char *topics,
if (id > 0)
return;
-error:
g_free(cbd);
CALLBACK_WITH_FAILURE(cb, user_data);
@@ -160,9 +156,6 @@ static void at_cbs_clear_topics(struct ofono_cbs *cbs,
DBG("");
- if (cbd == NULL)
- goto error;
-
if (data->cscb_mode_1)
snprintf(buf, sizeof(buf), "AT+CSCB=1,\"0-65535\"");
else
@@ -172,7 +165,6 @@ static void at_cbs_clear_topics(struct ofono_cbs *cbs,
at_cscb_set_cb, cbd, g_free) > 0)
return;
-error:
g_free(cbd);
CALLBACK_WITH_FAILURE(cb, user_data);