From 3c8f24769a51f002ec685ba291c2773bcd983877 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Sat, 26 Dec 2020 11:35:24 -0600 Subject: [PATCH] gemalto: Fix compiler error Fix compiler error introduced due to a bad merge Fixes: de0d5a19 ("gemalto: gprs: support different gprs protocols") --- drivers/gemaltomodem/gprs-context.c | 6 ++---- 1 file 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); }