staging: vt6655: remove undefined TASK_LET code
authorMalcolm Priestley <tvboxspy@gmail.com>
Mon, 28 Jul 2014 20:43:27 +0000 (21:43 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 Jul 2014 00:07:32 +0000 (17:07 -0700)
Removing all code within and function MngWorkItem.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/device.h
drivers/staging/vt6655/device_main.c
drivers/staging/vt6655/dpc.c
drivers/staging/vt6655/dpc.h

index a707984e451695a23077ba1ec85563df00e269aa..fccb510fb3f7fe80f39e26a1441c0d581c0db4ef 100644 (file)
@@ -425,7 +425,6 @@ typedef struct __device_info {
 
        spinlock_t                  lock;
 //PLICE_DEBUG->
-       struct  tasklet_struct  RxMngWorkItem;
        RxManagementQueue       rxManeQueue;
 //PLICE_DEBUG<-
 //PLICE_DEBUG ->
index 1e1d3b451653b0d0bf7905e4d46faa2b30d4649e..c43fc79eb4c64106be3f41b838d8e716ce810da7 100644 (file)
@@ -1704,9 +1704,6 @@ static int  device_open(struct net_device *dev)
        vMgrTimerInit(pDevice);
 
 //PLICE_DEBUG->
-#ifdef TASK_LET
-       tasklet_init(&pDevice->RxMngWorkItem, (void *)MngWorkItem, (unsigned long)pDevice);
-#endif
 #ifdef THREAD
        InitRxManagementQueue(pDevice);
        mlme_kill = 0;
@@ -1789,9 +1786,6 @@ static int  device_close(struct net_device *dev)
                del_timer(&pDevice->TimerSQ3Tmax3);
        }
 
-#ifdef TASK_LET
-       tasklet_kill(&pDevice->RxMngWorkItem);
-#endif
        netif_stop_queue(dev);
        pDevice->bCmdRunning = false;
        MACbShutdown(pDevice->PortOffset);
index ac588cb8fb22d01b0ded37e46e85330b93455def..31bb2b760498feea282b50e91420a868fcdf5662 100644 (file)
@@ -268,23 +268,6 @@ s_vGetDASA(unsigned char *pbyRxBufferAddr, unsigned int *pcbHeaderSize,
        *pcbHeaderSize = cbHeaderSize;
 }
 
-//PLICE_DEBUG ->
-
-void   MngWorkItem(void *Context)
-{
-       PSRxMgmtPacket                  pRxMgmtPacket;
-       PSDevice        pDevice =  (PSDevice) Context;
-
-       spin_lock_irq(&pDevice->lock);
-       while (pDevice->rxManeQueue.packet_num != 0) {
-               pRxMgmtPacket =  DeQueue(pDevice);
-               vMgrRxManagePacket(pDevice, pDevice->pMgmt, pRxMgmtPacket);
-       }
-       spin_unlock_irq(&pDevice->lock);
-}
-
-//PLICE_DEBUG<-
-
 bool
 device_receive_frame(
        PSDevice pDevice,
@@ -551,15 +534,8 @@ device_receive_frame(
 #ifdef THREAD
                        EnQueue(pDevice, pRxPacket);
 #else
-
-#ifdef TASK_LET
-                       EnQueue(pDevice, pRxPacket);
-                       tasklet_schedule(&pDevice->RxMngWorkItem);
-#else
                        vMgrRxManagePacket((void *)pDevice, pDevice->pMgmt, pRxPacket);
 #endif
-
-#endif
 //PLICE_DEBUG<-
                        // hostap Deamon handle 802.11 management
                        if (pDevice->bEnableHostapd) {
index 0c7e0e796ce346d26c5e29fab091a6286eaa7845..4914890115e4a37f0ba83d260ef332bdebd285ce 100644 (file)
@@ -39,6 +39,4 @@ device_receive_frame(
        PSRxDesc pCurrRD
 );
 
-void   MngWorkItem(void *Context);
-
 #endif // __RXTX_H__
This page took 0.029752 seconds and 5 git commands to generate.