summaryrefslogtreecommitdiffstats
path: root/drivers/ifxmodem/stk.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ifxmodem/stk.c')
-rw-r--r--drivers/ifxmodem/stk.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/ifxmodem/stk.c b/drivers/ifxmodem/stk.c
index c17a5ad7..6494c4da 100644
--- a/drivers/ifxmodem/stk.c
+++ b/drivers/ifxmodem/stk.c
@@ -104,7 +104,7 @@ static void ifx_stk_envelope(struct ofono_stk *stk, int length,
DBG("");
- if (!cbd || !buf)
+ if (cbd == NULL || buf == NULL)
goto error;
len = sprintf(buf, "AT+SATE=\"");
@@ -150,7 +150,7 @@ static void ifx_stk_terminal_response(struct ofono_stk *stk, int length,
DBG("");
- if (!cbd || !buf)
+ if (cbd == NULL || buf == NULL)
goto error;
len = sprintf(buf, "AT+SATR=\"");
@@ -273,7 +273,7 @@ static int ifx_stk_probe(struct ofono_stk *stk, unsigned int vendor, void *data)
DBG("");
sd = g_try_new0(struct stk_data, 1);
- if (!sd)
+ if (sd == NULL)
return -ENOMEM;
sd->chat = g_at_chat_clone(chat);