icera: Remove unneeded if statement

This commit is contained in:
Denis Kenzior 2019-04-29 14:03:08 -05:00
parent cdcb576692
commit c13411da6f
1 changed files with 1 additions and 3 deletions

View File

@ -332,9 +332,7 @@ static void icera_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,
at_cgdcont_cb, cbd, g_free) > 0)