summaryrefslogtreecommitdiff
path: root/drivers/gemaltomodem/gprs-context.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gemaltomodem/gprs-context.c')
-rw-r--r--drivers/gemaltomodem/gprs-context.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gemaltomodem/gprs-context.c b/drivers/gemaltomodem/gprs-context.c
index 9bf89c84..13a858d4 100644
--- a/drivers/gemaltomodem/gprs-context.c
+++ b/drivers/gemaltomodem/gprs-context.c
@@ -152,10 +152,8 @@ static void gemalto_gprs_activate_primary(struct ofono_gprs_context *gc,
snprintf(buf + len, sizeof(buf) - len - 3, ",\"%s\"", ctx->apn);
if (g_at_chat_send(gcd->chat, buf, none_prefix,
- cgdcont_enable_cb, gc, NULL) == 0)
- goto error;
-
- return;
+ cgdcont_enable_cb, gc, NULL) > 0)
+ return;
CALLBACK_WITH_FAILURE(cb, data);
}