From 625c204761592ac41f23de1680b32bc78365c144 Mon Sep 17 00:00:00 2001 From: Ben Chan Date: Thu, 3 Aug 2017 13:25:09 -0700 Subject: [PATCH] huawei: remove redundant call to huawei_parse_auth_type() This patch removes a redundant `encoded_auth = huawei_parse_auth_type (auth)` in connect_3gpp_context_step(). --- plugins/huawei/mm-broadband-bearer-huawei.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/huawei/mm-broadband-bearer-huawei.c b/plugins/huawei/mm-broadband-bearer-huawei.c index 175fe5b6..2230e74a 100644 --- a/plugins/huawei/mm-broadband-bearer-huawei.c +++ b/plugins/huawei/mm-broadband-bearer-huawei.c @@ -389,7 +389,7 @@ connect_3gpp_context_step (Connect3gppContext *ctx) encoded_auth = huawei_parse_auth_type (auth); /* Default to no authentication if not specified */ - if ((encoded_auth = huawei_parse_auth_type (auth)) == MM_BEARER_HUAWEI_AUTH_UNKNOWN) + if (encoded_auth == MM_BEARER_HUAWEI_AUTH_UNKNOWN) encoded_auth = MM_BEARER_HUAWEI_AUTH_NONE; if (!user && !passwd)