Skip to content

Commit

Permalink
iwlwifi: sta_id cannot be invalid in rs_initialize_lq
Browse files Browse the repository at this point in the history
The only caller of this is iwl_rs_rate_init
which is only called with a valid sta_id.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
  • Loading branch information
Johannes Berg authored and Reinette Chatre committed Mar 19, 2010
1 parent fe6b23d commit fe0b3b9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/net/wireless/iwlwifi/iwl-agn-rs.c
Original file line number Diff line number Diff line change
Expand Up @@ -2377,10 +2377,6 @@ static void rs_initialize_lq(struct iwl_priv *priv,

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;

if (!lq_sta->search_better_tbl)
Expand Down

0 comments on commit fe0b3b9

Please sign in to comment.