summaryrefslogtreecommitdiffstats
path: root/drivers/atmodem/devinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/atmodem/devinfo.c')
-rw-r--r--drivers/atmodem/devinfo.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/atmodem/devinfo.c b/drivers/atmodem/devinfo.c
index 4d3cf983..84ff8988 100644
--- a/drivers/atmodem/devinfo.c
+++ b/drivers/atmodem/devinfo.c
@@ -92,7 +92,7 @@ static void at_query_manufacturer(struct ofono_devinfo *info,
struct cb_data *cbd = cb_data_new(cb, data);
GAtChat *chat = ofono_devinfo_get_data(info);
- if (!cbd)
+ if (cbd == NULL)
goto error;
cbd->user = "+CGMI:";
@@ -113,7 +113,7 @@ static void at_query_model(struct ofono_devinfo *info,
struct cb_data *cbd = cb_data_new(cb, data);
GAtChat *chat = ofono_devinfo_get_data(info);
- if (!cbd)
+ if (cbd == NULL)
goto error;
cbd->user = "+CGMM:";
@@ -134,7 +134,7 @@ static void at_query_revision(struct ofono_devinfo *info,
struct cb_data *cbd = cb_data_new(cb, data);
GAtChat *chat = ofono_devinfo_get_data(info);
- if (!cbd)
+ if (cbd == NULL)
goto error;
cbd->user = "+CGMR:";
@@ -155,7 +155,7 @@ static void at_query_serial(struct ofono_devinfo *info,
struct cb_data *cbd = cb_data_new(cb, data);
GAtChat *chat = ofono_devinfo_get_data(info);
- if (!cbd)
+ if (cbd == NULL)
goto error;
cbd->user = "+CGSN:";