diff options
Diffstat (limited to 'drivers/atmodem/call-meter.c')
-rw-r--r-- | drivers/atmodem/call-meter.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/atmodem/call-meter.c b/drivers/atmodem/call-meter.c index 28359afb..5c933971 100644 --- a/drivers/atmodem/call-meter.c +++ b/drivers/atmodem/call-meter.c @@ -116,7 +116,7 @@ static void at_caoc_query(struct ofono_call_meter *cm, GAtChat *chat = ofono_call_meter_get_data(cm); struct cb_data *cbd = cb_data_new(cb, data); - if (!cbd) + if (cbd == NULL) goto error; cbd->user = "+CAOC:"; @@ -137,7 +137,7 @@ static void at_cacm_query(struct ofono_call_meter *cm, GAtChat *chat = ofono_call_meter_get_data(cm); struct cb_data *cbd = cb_data_new(cb, data); - if (!cbd) + if (cbd == NULL) goto error; cbd->user = "+CACM:"; @@ -169,7 +169,7 @@ static void at_cacm_set(struct ofono_call_meter *cm, const char *passwd, struct cb_data *cbd = cb_data_new(cb, data); char buf[64]; - if (!cbd) + if (cbd == NULL) goto error; snprintf(buf, sizeof(buf), "AT+CACM=\"%s\"", passwd); @@ -191,7 +191,7 @@ static void at_camm_query(struct ofono_call_meter *cm, GAtChat *chat = ofono_call_meter_get_data(cm); struct cb_data *cbd = cb_data_new(cb, data); - if (!cbd) + if (cbd == NULL) goto error; cbd->user = "+CAMM:"; @@ -213,7 +213,7 @@ static void at_camm_set(struct ofono_call_meter *cm, struct cb_data *cbd = cb_data_new(cb, data); char buf[64]; - if (!cbd) + if (cbd == NULL) goto error; snprintf(buf, sizeof(buf), "AT+CAMM=\"%06X\",\"%s\"", accmax, passwd); @@ -274,7 +274,7 @@ static void at_cpuc_query(struct ofono_call_meter *cm, GAtChat *chat = ofono_call_meter_get_data(cm); struct cb_data *cbd = cb_data_new(cb, data); - if (!cbd) + if (cbd == NULL) goto error; cbd->user = "+CPUC:"; @@ -296,7 +296,7 @@ static void at_cpuc_set(struct ofono_call_meter *cm, const char *currency, struct cb_data *cbd = cb_data_new(cb, data); char buf[64]; - if (!cbd) + if (cbd == NULL) goto error; snprintf(buf, sizeof(buf), "AT+CPUC=\"%s\",\"%f\",\"%s\"", |