aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/intel
diff options
context:
space:
mode:
authorLuca Coelho <luciano.coelho@intel.com>2019-11-15 09:27:28 +0200
committerKalle Valo <kvalo@codeaurora.org>2019-11-15 09:31:18 +0200
commitd923b020dcecb70687391fd311fc0a8affc37857 (patch)
tree11d7822ce97df43ee9ddb66257cd8c3f9f003fed /drivers/net/wireless/intel
parentiwlwifi: mvm: fix support for single antenna diversity (diff)
downloadlinux-dev-d923b020dcecb70687391fd311fc0a8affc37857.tar.xz
linux-dev-d923b020dcecb70687391fd311fc0a8affc37857.zip
iwlwifi: mvm: remove else-if in iwl_send_phy_cfg_cmd()
We return in the if block, so it's unnecessary to have an else statement. Remove it. Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/intel')
-rw-r--r--drivers/net/wireless/intel/iwlwifi/mvm/fw.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/fw.c b/drivers/net/wireless/intel/iwlwifi/mvm/fw.c
index c59cbb8cbdd7..66e14f590b6d 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/fw.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/fw.c
@@ -515,9 +515,10 @@ static int iwl_send_phy_cfg_cmd(struct iwl_mvm *mvm)
enum iwl_ucode_type ucode_type = mvm->fwrt.cur_fw_img;
if (iwl_mvm_has_unified_ucode(mvm) &&
- !mvm->trans->cfg->tx_with_siso_diversity) {
+ !mvm->trans->cfg->tx_with_siso_diversity)
return 0;
- } else if (mvm->trans->cfg->tx_with_siso_diversity) {
+
+ if (mvm->trans->cfg->tx_with_siso_diversity) {
/*
* TODO: currently we don't set the antenna but letting the NIC
* to decide which antenna to use. This should come from BIOS.