staging: rtl8192e: Remove unused struct members
authorMike McCormack <mikem@ring3k.org>
Mon, 24 Jan 2011 14:16:10 +0000 (23:16 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 24 Jan 2011 22:34:39 +0000 (06:34 +0800)
Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rtl8192e/r8192E.h
drivers/staging/rtl8192e/r8192E_core.c
drivers/staging/rtl8192e/r819xE_phy.c

index 798a355372063d82242f30169e671c3a6d465f7d..a93b0eeaf90f2340d380946d084a10237bfd6903 100644 (file)
@@ -986,12 +986,10 @@ typedef struct r8192_priv
        short hw_plcp_len;
        short plcp_preamble_mode;
        u8 ScanDelay;
-       spinlock_t irq_lock;
        spinlock_t irq_th_lock;
        spinlock_t tx_lock;
        spinlock_t rf_ps_lock;
         struct mutex mutex;
-       spinlock_t rf_lock; //used to lock rf write operation added by wb
        spinlock_t ps_lock;
 
        u32 irq_mask;
@@ -1021,25 +1019,11 @@ typedef struct r8192_priv
         struct rtl8192_tx_ring tx_ring[MAX_TX_QUEUE_COUNT];
        int txringcount;
 //{
-       int txbuffsize;
-       int txfwbuffersize;
        //struct tx_pendingbuf txnp_pending;
        //struct tasklet_struct irq_tx_tasklet;
        struct tasklet_struct irq_rx_tasklet;
        struct tasklet_struct irq_tx_tasklet;
         struct tasklet_struct irq_prepare_beacon_tasklet;
-       struct buffer *txmapbufs;
-       struct buffer *txbkpbufs;
-       struct buffer *txbepbufs;
-       struct buffer *txvipbufs;
-       struct buffer *txvopbufs;
-       struct buffer *txcmdbufs;
-       struct buffer *txmapbufstail;
-       struct buffer *txbkpbufstail;
-       struct buffer *txbepbufstail;
-       struct buffer *txvipbufstail;
-       struct buffer *txvopbufstail;
-       struct buffer *txcmdbufstail;
        /* adhoc/master mode stuff */
        ptx_ring txbeaconringtail;
        dma_addr_t txbeaconringdma;
index 044e226fe9ab1715028ce378be06dc0a263205ad..80a0e1f0ecbffe7a5cb1c9a03a1ca6da1a075a56 100644 (file)
@@ -2150,8 +2150,6 @@ static void rtl8192_init_priv_variable(struct net_device* dev)
        priv->bHwRadioOff = false;
 
        priv->being_init_adapter = false;
-       priv->txbuffsize = 1600;//1024;
-       priv->txfwbuffersize = 4096;
        priv->txringcount = 64;//32;
        //priv->txbeaconcount = priv->txringcount;
        priv->txbeaconcount = 2;
@@ -2301,11 +2299,9 @@ static void rtl8192_init_priv_variable(struct net_device* dev)
 static void rtl8192_init_priv_lock(struct r8192_priv* priv)
 {
        spin_lock_init(&priv->tx_lock);
-       spin_lock_init(&priv->irq_lock);//added by thomas
        spin_lock_init(&priv->irq_th_lock);
        spin_lock_init(&priv->rf_ps_lock);
        spin_lock_init(&priv->ps_lock);
-       //spin_lock_init(&priv->rf_lock);
        sema_init(&priv->wx_sem,1);
        sema_init(&priv->rf_sem,1);
        mutex_init(&priv->mutex);
index 50cd0e52b9213ace1ab4fe30b98f0aa57c201670..f75c907fd002af2620becfdee6b91873d16185cd 100644 (file)
@@ -1727,7 +1727,6 @@ void rtl8192_phy_SetRFReg(struct net_device* dev, RF90_RADIO_PATH_E eRFPath, u32
        if(priv->ieee80211->eRFPowerState != eRfOn && !priv->being_init_adapter)
                return;
 #endif
-       //spin_lock_irqsave(&priv->rf_lock, flags);
        //down(&priv->rf_sem);
 
        RT_TRACE(COMP_PHY, "FW RF CTRL is not ready now\n");
@@ -1757,7 +1756,6 @@ void rtl8192_phy_SetRFReg(struct net_device* dev, RF90_RADIO_PATH_E eRFPath, u32
                }else
                        rtl8192_phy_RFSerialWrite(dev, eRFPath, RegAddr, Data);
        }
-       //spin_unlock_irqrestore(&priv->rf_lock, flags);
        //up(&priv->rf_sem);
 }