mirror of git://git.sysmocom.de/ofono
atmodem: Remove unneeded if statement
if (ctx->apn) is always true since apn is an array variable
This commit is contained in:
parent
413e6ecab0
commit
88f2ae3869
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue