Skip to content

Commit

Permalink
staging: w35und: Remove unused spinlocks
Browse files Browse the repository at this point in the history
This patch removes unused spinlocks from "struct mlme_frame" and "struct
wbsoft_priv".

Cc: Lars Lindley <lindley@coyote.org>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: Ruslan Pisarev <ruslan@rpisarev.org.ua>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Pekka Enberg authored and Greg Kroah-Hartman committed Sep 21, 2010
1 parent 3c09386 commit 89b32d4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
5 changes: 0 additions & 5 deletions drivers/staging/winbond/core.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef __WINBOND_CORE_H
#define __WINBOND_CORE_H

#include <linux/spinlock.h>
#include <linux/wireless.h>
#include <linux/types.h>

Expand All @@ -21,8 +20,6 @@ struct mlme_frame {
u8 DataType;
u8 IsInUsed;

spinlock_t MLMESpinLock;

u8 TxMMPDU[MAX_NUM_TX_MMPDU][MAX_MMPDU_SIZE];
u8 TxMMPDUInUse[(MAX_NUM_TX_MMPDU + 3) & ~0x03];

Expand Down Expand Up @@ -57,8 +54,6 @@ struct wbsoft_priv {
struct hw_data sHwData; /*For HAL */
struct wb35_mds Mds;

spinlock_t SpinLock;

atomic_t ThreadCount;

u32 RxByteCount;
Expand Down
2 changes: 0 additions & 2 deletions drivers/staging/winbond/wbusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -783,8 +783,6 @@ static int wb35_probe(struct usb_interface *intf,

priv = dev->priv;

spin_lock_init(&priv->SpinLock);

pWbUsb = &priv->sHwData.WbUsb;
pWbUsb->udev = udev;

Expand Down

0 comments on commit 89b32d4

Please sign in to comment.