summaryrefslogtreecommitdiffstats
path: root/plugins/zte.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/zte.c')
-rw-r--r--plugins/zte.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/zte.c b/plugins/zte.c
index 4693d933..822098d4 100644
--- a/plugins/zte.c
+++ b/plugins/zte.c
@@ -250,7 +250,7 @@ static void zte_set_online(struct ofono_modem *modem, ofono_bool_t online,
DBG("modem %p %s", modem, online ? "online" : "offline");
- if (cbd == NULL || chat == NULL)
+ if (chat == NULL)
goto error;
if (g_at_chat_send(chat, command, NULL, set_online_cb, cbd, g_free))