Skip to content

Commit

Permalink
iwlwifi: replace test_and_set_bit by set_bit in clear stations function
Browse files Browse the repository at this point in the history
This patch replaces test_and_set_bit by set_bit since the bit is not
tested anyway

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Tomas Winkler authored and John W. Linville committed May 6, 2009
1 parent a30199f commit 4e8e2c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/iwlwifi/iwl-sta.c
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ void iwl_clear_stations_table(struct iwl_priv *priv)
/* keep track of static keys */
for (i = 0; i < WEP_KEYS_MAX ; i++) {
if (priv->wep_keys[i].key_size)
test_and_set_bit(i, &priv->ucode_key_table);
set_bit(i, &priv->ucode_key_table);
}

spin_unlock_irqrestore(&priv->sta_lock, flags);
Expand Down

0 comments on commit 4e8e2c8

Please sign in to comment.