summaryrefslogtreecommitdiffstats
path: root/plugins/huawei.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/huawei.c')
-rw-r--r--plugins/huawei.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/huawei.c b/plugins/huawei.c
index e40a0ac0..25dfacaa 100644
--- a/plugins/huawei.c
+++ b/plugins/huawei.c
@@ -93,7 +93,7 @@ static int huawei_probe(struct ofono_modem *modem)
DBG("%p", modem);
data = g_try_new0(struct huawei_data, 1);
- if (!data)
+ if (data == NULL)
return -ENOMEM;
ofono_modem_set_data(modem, data);
@@ -392,7 +392,7 @@ static GAtChat *create_port(const char *device)
GAtChat *chat;
channel = g_at_tty_open(device, NULL);
- if (!channel)
+ if (channel == NULL)
return NULL;
syntax = g_at_syntax_new_gsm_permissive();
@@ -400,7 +400,7 @@ static GAtChat *create_port(const char *device)
g_at_syntax_unref(syntax);
g_io_channel_unref(channel);
- if (!chat)
+ if (chat == NULL)
return NULL;
return chat;
@@ -533,7 +533,7 @@ static int huawei_disable(struct ofono_modem *modem)
data->modem = NULL;
}
- if (!data->pcui)
+ if (data->pcui == NULL)
return 0;
g_at_chat_cancel_all(data->pcui);
@@ -565,7 +565,7 @@ static void huawei_set_online(struct ofono_modem *modem, ofono_bool_t online,
DBG("modem %p %s", modem, online ? "online" : "offline");
- if (!cbd)
+ if (cbd == NULL)
goto error;
if (g_at_chat_send(chat, command, NULL, set_online_cb, cbd, g_free))