projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8503ae
)
iwlwifi: dvm: excessive if in rs_bt_update_lq()
author
Denis Efremov
<efremov@linux.com>
Wed, 25 Sep 2019 20:49:35 +0000
(23:49 +0300)
committer
Luca Coelho
<luciano.coelho@intel.com>
Wed, 20 Nov 2019 10:28:55 +0000
(12:28 +0200)
There is no need to check 'priv->bt_ant_couple_ok' twice in
rs_bt_update_lq(). The second check is always true. Thus, the
expression can be simplified.
Signed-off-by: Denis Efremov <efremov@linux.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/dvm/rs.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/intel/iwlwifi/dvm/rs.c
b/drivers/net/wireless/intel/iwlwifi/dvm/rs.c
index 74229fcb63a91204ce718e683c77e7c7faf94fa1..226165db7dfd5bfc46007192512993c0864f75be 100644
(file)
--- a/
drivers/net/wireless/intel/iwlwifi/dvm/rs.c
+++ b/
drivers/net/wireless/intel/iwlwifi/dvm/rs.c
@@
-851,7
+851,7
@@
static void rs_bt_update_lq(struct iwl_priv *priv, struct iwl_rxon_context *ctx,
* Is there a need to switch between
* full concurrency and 3-wire?
*/
- if (priv->bt_ci_compliance
&& priv->bt_ant_couple_ok
)
+ if (priv->bt_ci_compliance)
full_concurrent = true;
else
full_concurrent = false;