aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Chan <benchan@chromium.org>2017-08-03 13:25:09 -0700
committerAleksander Morgado <aleksander@aleksander.es>2017-08-04 14:02:06 +0200
commit625c204761592ac41f23de1680b32bc78365c144 (patch)
treeafc7d6b07883b2803012280b445df46879a9a8da
parentf81a518515cdd213f53527025a12f7d40b5cfbbc (diff)
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().
-rw-r--r--plugins/huawei/mm-broadband-bearer-huawei.c2
1 files changed, 1 insertions, 1 deletions
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)