mirror of git://git.sysmocom.de/ofono
phoneseim: Remove unneeded if
This commit is contained in:
parent
9da5779a90
commit
4bb6e09661
|
@ -161,9 +161,7 @@ static void phonesim_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);
|
||||
|
||||
/* Assume always succeeds */
|
||||
if (g_at_chat_send(gcd->chat, buf, none_prefix, NULL, NULL, NULL) == 0)
|
||||
|
|
Loading…
Reference in New Issue