swmodem: Remove unneeded if statement

This commit is contained in:
Denis Kenzior 2019-04-29 14:01:41 -05:00
parent c05cbf147d
commit eef1f73cb3
1 changed files with 1 additions and 3 deletions

View File

@ -177,9 +177,7 @@ static void sw_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)