rt2x00: Remove unused interface spinlock
authorHelmut Schaa <helmut.schaa@googlemail.com>
Mon, 27 Dec 2010 14:07:16 +0000 (15:07 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 4 Jan 2011 19:35:15 +0000 (14:35 -0500)
Since the last user of intf->lock is gone we can safely remove it.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00.h
drivers/net/wireless/rt2x00/rt2x00mac.c

index b3f77d4f37ffecc572788bcbd9e2a16fb3450c17..84aaf393da43a06144b838d820e78f3cf866e068 100644 (file)
@@ -357,12 +357,6 @@ enum rt2x00_delayed_flags {
  * is allocated as the private data for ieee80211_vif.
  */
 struct rt2x00_intf {
-       /*
-        * All fields within the rt2x00_intf structure
-        * must be protected with a spinlock.
-        */
-       spinlock_t lock;
-
        /*
         * beacon->skb must be protected with the mutex.
         */
index 297d972c229ba68a7f8fa83e9a4d6922f2fd8d57..b5dad0427a971237929f6fad0c814c48a03f4fc4 100644 (file)
@@ -268,7 +268,6 @@ int rt2x00mac_add_interface(struct ieee80211_hw *hw,
        else
                rt2x00dev->intf_sta_count++;
 
-       spin_lock_init(&intf->lock);
        spin_lock_init(&intf->seqlock);
        mutex_init(&intf->beacon_skb_mutex);
        intf->beacon = entry;