phoneseim: Remove unneeded if

This commit is contained in:
Denis Kenzior 2019-04-29 14:09:56 -05:00
parent 9da5779a90
commit 4bb6e09661
1 changed files with 1 additions and 3 deletions

View File

@ -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)