summaryrefslogtreecommitdiffstats
path: root/plugins/ifx.c
diff options
context:
space:
mode:
authorJeevaka Badrappan <jeevaka.badrappan@elektrobit.com>2011-01-29 05:34:44 -0800
committerMarcel Holtmann <marcel@holtmann.org>2011-01-29 18:39:37 +0100
commit8c667aadad8b0028268735db710c0ddc8d60f4b7 (patch)
treed8a13ad939b5e3e05136709914bce5637964562d /plugins/ifx.c
parentf9b34de3d41deb4c9f5cd50aa6dc9dc7bd186b00 (diff)
downloadofono-8c667aadad8b0028268735db710c0ddc8d60f4b7.tar.bz2
plugins: remove NULL check
Diffstat (limited to 'plugins/ifx.c')
-rw-r--r--plugins/ifx.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/plugins/ifx.c b/plugins/ifx.c
index 79cd150a..411c0120 100644
--- a/plugins/ifx.c
+++ b/plugins/ifx.c
@@ -661,14 +661,10 @@ static void ifx_set_online(struct ofono_modem *modem, ofono_bool_t online,
DBG("%p %s", modem, online ? "online" : "offline");
- if (cbd == NULL)
- goto error;
-
if (g_at_chat_send(data->dlcs[AUX_DLC], command, NULL,
set_online_cb, cbd, g_free) > 0)
return;
-error:
g_free(cbd);
CALLBACK_WITH_FAILURE(cb, cbd->data);