diff options
author | Ben Chan <benchan@chromium.org> | 2017-08-03 13:25:09 -0700 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2017-08-04 14:02:06 +0200 |
commit | 625c204761592ac41f23de1680b32bc78365c144 (patch) | |
tree | afc7d6b07883b2803012280b445df46879a9a8da | |
parent | f81a518515cdd213f53527025a12f7d40b5cfbbc (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.c | 2 |
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) |