staging: vt6656: dpc remove dead code RXvMngWorkItem
authorMalcolm Priestley <tvboxspy@gmail.com>
Wed, 25 Jun 2014 20:20:02 +0000 (21:20 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2014 00:23:32 +0000 (20:23 -0400)
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/dpc.c
drivers/staging/vt6656/dpc.h

index 65a3a704209948f977f1c143fdaf55d97af1ea6a..ceeb3eeeb954412c9dd8bda1e02dbc7e6962db80 100644 (file)
@@ -112,52 +112,6 @@ void RXvFreeRCB(struct vnt_rcb *rcb, int re_alloc_skb)
                        priv->NumRecvFreeList, priv->NumRecvMngList);
 }
 
-void RXvMngWorkItem(struct work_struct *work)
-{
-       struct vnt_private *pDevice =
-               container_of(work, struct vnt_private, rx_mng_work_item);
-       struct vnt_rcb *pRCB = NULL;
-       struct vnt_rx_mgmt *pRxPacket;
-       int bReAllocSkb = false;
-       unsigned long flags;
-
-       if (pDevice->Flags & fMP_DISCONNECTED)
-               return;
-
-    DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"---->Rx Mng Thread\n");
-
-    while (pDevice->NumRecvMngList!=0)
-    {
-       spin_lock_irqsave(&pDevice->lock, flags);
-
-        pRCB = pDevice->FirstRecvMngList;
-        pDevice->NumRecvMngList--;
-        DequeueRCB(pDevice->FirstRecvMngList, pDevice->LastRecvMngList);
-
-       spin_unlock_irqrestore(&pDevice->lock, flags);
-
-        if(!pRCB){
-            break;
-        }
-        pRxPacket = &(pRCB->sMngPacket);
-        pRCB->Ref--;
-       if (pRCB->Ref == 0) {
-               DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"RxvFreeMng %d %d\n",
-                       pDevice->NumRecvFreeList, pDevice->NumRecvMngList);
-
-               spin_lock_irqsave(&pDevice->lock, flags);
-
-               RXvFreeRCB(pRCB, bReAllocSkb);
-
-               spin_unlock_irqrestore(&pDevice->lock, flags);
-       } else {
-            DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"Rx Mng Only we have the right to free RCB\n");
-        }
-    }
-
-       pDevice->bIsRxMngWorkItemQueued = false;
-}
-
 int vnt_rx_data(struct vnt_private *priv, struct vnt_rcb *ptr_rcb,
        unsigned long bytes_received)
 {
index 0afd882a5e47d24d0ea10cd152f14473970da4fa..1df2ae897988cc0c615ccd515731717a0f7def1e 100644 (file)
@@ -34,8 +34,6 @@
 
 void RXvWorkItem(struct work_struct *work);
 
-void RXvMngWorkItem(struct work_struct *work);
-
 void RXvFreeRCB(struct vnt_rcb *pRCB, int bReAllocSkb);
 
 int vnt_rx_data(struct vnt_private *, struct vnt_rcb *,