telit: Remove unneeded if

This commit is contained in:
Denis Kenzior 2019-04-29 14:07:59 -05:00
parent ea6cd4e7fd
commit 0b2de27727
1 changed files with 1 additions and 3 deletions

View File

@ -352,9 +352,7 @@ static void telitncm_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)