ifxmodem: Remove unneeded if statement

if (ctx->apn) always evalues to true since it is an array member
This commit is contained in:
Denis Kenzior 2019-04-29 14:00:42 -05:00
parent 88f2ae3869
commit c05cbf147d
1 changed files with 1 additions and 3 deletions

View File

@ -567,9 +567,7 @@ static void ifx_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)