]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
iwlwifi: replace test_and_set_bit by set_bit in clear stations function
authorTomas Winkler <tomas.winkler@intel.com>
Thu, 30 Apr 2009 20:56:29 +0000 (13:56 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 6 May 2009 19:15:00 +0000 (15:15 -0400)
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>
drivers/net/wireless/iwlwifi/iwl-sta.c

index 17a4dd2be1f217e1dcffa5a88bc85b98c70c39ac..28dd225269ad511d08527c5540a4626f8fd928a4 100644 (file)
@@ -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);