diff options
author | Denis Kenzior <denkenz@gmail.com> | 2019-04-29 14:00:42 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2019-04-29 14:00:42 -0500 |
commit | c05cbf147da050f4e8d0536d17e3ecdd3619a50a (patch) | |
tree | 6c9b7c2010dd7fa336555c256cfd9491b3d99f37 /drivers/ifxmodem | |
parent | 88f2ae3869a3baf12ef561449289c5c16e72ace3 (diff) | |
download | ofono-c05cbf147da050f4e8d0536d17e3ecdd3619a50a.tar.gz |
ifxmodem: Remove unneeded if statement
if (ctx->apn) always evalues to true since it is an array member
Diffstat (limited to 'drivers/ifxmodem')
-rw-r--r-- | drivers/ifxmodem/gprs-context.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/ifxmodem/gprs-context.c b/drivers/ifxmodem/gprs-context.c index a363a069..19be6dfe 100644 --- a/drivers/ifxmodem/gprs-context.c +++ b/drivers/ifxmodem/gprs-context.c @@ -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) |