提交 fe0b3b96 编写于 作者: J Johannes Berg 提交者: Reinette Chatre

iwlwifi: sta_id cannot be invalid in rs_initialize_lq

The only caller of this is iwl_rs_rate_init
which is only called with a valid sta_id.
Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
Signed-off-by: NReinette Chatre <reinette.chatre@intel.com>
上级 fe6b23dd
...@@ -2377,10 +2377,6 @@ static void rs_initialize_lq(struct iwl_priv *priv, ...@@ -2377,10 +2377,6 @@ static void rs_initialize_lq(struct iwl_priv *priv,
i = lq_sta->last_txrate_idx; i = lq_sta->last_txrate_idx;
if ((lq_sta->lq.sta_id == 0xff) &&
(priv->iw_mode == NL80211_IFTYPE_ADHOC))
goto out;
valid_tx_ant = priv->hw_params.valid_tx_ant; valid_tx_ant = priv->hw_params.valid_tx_ant;
if (!lq_sta->search_better_tbl) if (!lq_sta->search_better_tbl)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册