mirror of git://git.sysmocom.de/ofono
ifxmodem: Remove unneeded if statement
if (ctx->apn) always evalues to true since it is an array member
This commit is contained in:
parent
88f2ae3869
commit
c05cbf147d
|
@ -567,9 +567,7 @@ static void ifx_gprs_activate_primary(struct ofono_gprs_context *gc,
|
|||
break;
|
||||
}
|
||||
|
||||
if (ctx->apn)
|
||||
snprintf(buf + len, sizeof(buf) - len - 3,
|
||||
",\"%s\"", ctx->apn);
|
||||
snprintf(buf + len, sizeof(buf) - len - 3, ",\"%s\"", ctx->apn);
|
||||
|
||||
if (g_at_chat_send(gcd->chat, buf, none_prefix,
|
||||
setup_cb, gc, NULL) > 0)
|
||||
|
|
Loading…
Reference in New Issue