diff options
Diffstat (limited to 'drivers/mbmmodem/gprs-context.c')
-rw-r--r-- | drivers/mbmmodem/gprs-context.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mbmmodem/gprs-context.c b/drivers/mbmmodem/gprs-context.c index 553b7fd1..0a1ca2c3 100644 --- a/drivers/mbmmodem/gprs-context.c +++ b/drivers/mbmmodem/gprs-context.c @@ -364,7 +364,7 @@ static void mbm_gprs_activate_primary(struct ofono_gprs_context *gc, DBG("cid %u", ctx->cid); - if (!cbd) + if (cbd == NULL) goto error; gcd->active_context = ctx->cid; @@ -408,7 +408,7 @@ static void mbm_gprs_deactivate_primary(struct ofono_gprs_context *gc, DBG("cid %u", cid); - if (!cbd) + if (cbd == NULL) goto error; cbd->user = gc; @@ -471,7 +471,7 @@ static int mbm_gprs_context_probe(struct ofono_gprs_context *gc, DBG(""); gcd = g_try_new0(struct gprs_context_data, 1); - if (!gcd) + if (gcd == NULL) return -ENOMEM; gcd->chat = g_at_chat_clone(chat); |