iwlwifi: rs: remove code duplication when filling lq cmd
authorLiad Kaufman <liad.kaufman@intel.com>
Sun, 5 Apr 2015 10:52:50 +0000 (13:52 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 29 Apr 2015 10:12:47 +0000 (13:12 +0300)
Same code appear a few lines later while the position has
no effect on the actual flow.

Signed-off-by: Liad Kaufman <liad.kaufman@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/rs.c

index f9928f2c125f726bbf89474096bd47990bfb86eb..a9ad644c509f181a5414e4cfb9e4fa81283747b0 100644 (file)
@@ -3223,9 +3223,6 @@ static void rs_fill_lq_cmd(struct iwl_mvm *mvm,
        if (mvm->fw->ucode_capa.api[0] & IWL_UCODE_TLV_API_LQ_SS_PARAMS)
                rs_set_lq_ss_params(mvm, sta, lq_sta, initial_rate);
 
-       if (num_of_ant(initial_rate->ant) == 1)
-               lq_cmd->single_stream_ant_msk = initial_rate->ant;
-
        mvmsta = iwl_mvm_sta_from_mac80211(sta);
        mvmvif = iwl_mvm_vif_from_mac80211(mvmsta->vif);