From 317900635136564cce1ce74ef09a8e5fb012912b Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Wed, 31 Mar 2021 16:02:39 +0200 Subject: [PATCH] cinterion: remove unused checkup of default IP family Looks like the logic is just there to write a debug log, as the selected IP family is not used anywhere else. Just remove this. --- .../cinterion/mm-broadband-bearer-cinterion.c | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/plugins/cinterion/mm-broadband-bearer-cinterion.c b/plugins/cinterion/mm-broadband-bearer-cinterion.c index 4c59d567..ddfc90d0 100644 --- a/plugins/cinterion/mm-broadband-bearer-cinterion.c +++ b/plugins/cinterion/mm-broadband-bearer-cinterion.c @@ -300,21 +300,9 @@ dial_3gpp_context_step (GTask *task) } switch (ctx->step) { - case DIAL_3GPP_CONTEXT_STEP_FIRST: { - MMBearerIpFamily ip_family; - - ip_family = mm_bearer_properties_get_ip_type (mm_base_bearer_peek_config (MM_BASE_BEARER (ctx->self))); - if (ip_family == MM_BEARER_IP_FAMILY_NONE || ip_family == MM_BEARER_IP_FAMILY_ANY) { - gchar *ip_family_str; - - ip_family = mm_base_bearer_get_default_ip_family (MM_BASE_BEARER (ctx->self)); - ip_family_str = mm_bearer_ip_family_build_string_from_mask (ip_family); - mm_obj_dbg (self, "no specific IP family requested, defaulting to %s", ip_family_str); - g_free (ip_family_str); - } - + case DIAL_3GPP_CONTEXT_STEP_FIRST: ctx->step++; - } /* fall through */ + /* fall through */ case DIAL_3GPP_CONTEXT_STEP_AUTH: { gchar *command;