From 8c667aadad8b0028268735db710c0ddc8d60f4b7 Mon Sep 17 00:00:00 2001 From: Jeevaka Badrappan Date: Sat, 29 Jan 2011 05:34:44 -0800 Subject: plugins: remove NULL check --- plugins/ifx.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'plugins/ifx.c') 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); -- cgit v1.2.3