diff options
| author | Luca Coelho <[email protected]> | 2019-07-02 12:18:47 +0000 |
|---|---|---|
| committer | Luca Coelho <[email protected]> | 2019-09-06 12:31:19 +0000 |
| commit | e533f74589685a43fb191764c26f33a41a908ec3 (patch) | |
| tree | 753551e44083a814715110d5227bd4755d98a517 /drivers/net/wireless/intel/iwlwifi/mvm/rs.c | |
| parent | iwlwifi: mvm: simplify the channel switch flow for newer firmware (diff) | |
| download | kernel-e533f74589685a43fb191764c26f33a41a908ec3.tar.gz kernel-e533f74589685a43fb191764c26f33a41a908ec3.zip | |
iwlwifi: mvm: remove check for lq_sta in __iwl_mvm_rs_tx_status()
The check is not necessary anymore, because now the struct is not
allocated separately, but is part of the mvmsta struct. Remove the
check, since it's dead code.
Signed-off-by: Luca Coelho <[email protected]>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/rs.c')
| -rw-r--r-- | drivers/net/wireless/intel/iwlwifi/mvm/rs.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/rs.c b/drivers/net/wireless/intel/iwlwifi/mvm/rs.c index e4415e58fa78..fcd1b15d2fa0 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/rs.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/rs.c @@ -3079,11 +3079,7 @@ static void __iwl_mvm_rs_tx_status(struct iwl_mvm *mvm, struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); struct iwl_lq_sta *lq_sta = &mvmsta->lq_sta.rs_drv; - /* Treat uninitialized rate scaling data same as non-existing. */ - if (!lq_sta) { - IWL_DEBUG_RATE(mvm, "Station rate scaling not created yet.\n"); - return; - } else if (!lq_sta->pers.drv) { + if (!lq_sta->pers.drv) { IWL_DEBUG_RATE(mvm, "Rate scaling not initialized yet.\n"); return; } |
