atmodem: Remove unneeded if statement

if (ctx->apn) is always true since apn is an array variable
This commit is contained in:
Denis Kenzior 2019-04-29 13:59:36 -05:00
parent 413e6ecab0
commit 88f2ae3869
1 changed files with 26 additions and 28 deletions

View File

@ -289,7 +289,6 @@ static void at_gprs_activate_primary(struct ofono_gprs_context *gc,
len = snprintf(buf, sizeof(buf), "AT+CGDCONT=%u,\"IP\"", ctx->cid);
if (ctx->apn) {
switch (gcd->vendor) {
case OFONO_VENDOR_UBLOX:
/*
@ -320,7 +319,6 @@ static void at_gprs_activate_primary(struct ofono_gprs_context *gc,
ctx->apn);
break;
}
}
if (g_at_chat_send(gcd->chat, buf, none_prefix,
at_cgdcont_cb, gc, NULL) > 0)