diff options
author | Denis Kenzior <denkenz@gmail.com> | 2019-04-29 14:09:56 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2019-04-29 14:09:56 -0500 |
commit | 4bb6e096613fc973125ecf8bba2d478d3f82356a (patch) | |
tree | b6ba21706c8f41dd775504b0a39ab4b8625b3481 /plugins/phonesim.c | |
parent | 9da5779a90596e463c26b5387e13b1f6b1cf83bd (diff) | |
download | ofono-4bb6e096613fc973125ecf8bba2d478d3f82356a.tar.gz |
phoneseim: Remove unneeded if
Diffstat (limited to 'plugins/phonesim.c')
-rw-r--r-- | plugins/phonesim.c | 4 |
1 files changed, 1 insertions, 3 deletions
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) |