diff --git a/plugins/phonesim.c b/plugins/phonesim.c index 7f17c2d3..2209a35b 100644 --- a/plugins/phonesim.c +++ b/plugins/phonesim.c @@ -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)