diff options
author | Denis Efremov <efremov@linux.com> | 2019-09-25 22:49:35 +0200 |
---|---|---|
committer | Luca Coelho <luciano.coelho@intel.com> | 2019-11-20 11:28:55 +0100 |
commit | e7babbe31fe28a812eb64dab16a0c4423c6ebadd (patch) | |
tree | e8adb618b156decd694f4577fea9e34c51d18b50 /drivers/net/wireless/intel | |
parent | iwlwifi: mvm: Report tx/rx antennas (diff) | |
download | linux-e7babbe31fe28a812eb64dab16a0c4423c6ebadd.tar.xz linux-e7babbe31fe28a812eb64dab16a0c4423c6ebadd.zip |
iwlwifi: dvm: excessive if in rs_bt_update_lq()
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>
Diffstat (limited to 'drivers/net/wireless/intel')
-rw-r--r-- | drivers/net/wireless/intel/iwlwifi/dvm/rs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/dvm/rs.c b/drivers/net/wireless/intel/iwlwifi/dvm/rs.c index 74229fcb63a9..226165db7dfd 100644 --- 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; |