Commit 49d73a98 authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Greg Kroah-Hartman

staging: vt6656: Clean up RXvWorkItem

Remove white space and camel case.

Camel case changes
pDevice -> priv
ntStatus -> status
pRCB -> rcb
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d1c3c6f5
...@@ -1295,28 +1295,32 @@ static int s_bAPModeRxData(struct vnt_private *pDevice, struct sk_buff *skb, ...@@ -1295,28 +1295,32 @@ static int s_bAPModeRxData(struct vnt_private *pDevice, struct sk_buff *skb,
void RXvWorkItem(struct work_struct *work) void RXvWorkItem(struct work_struct *work)
{ {
struct vnt_private *pDevice = struct vnt_private *priv =
container_of(work, struct vnt_private, read_work_item); container_of(work, struct vnt_private, read_work_item);
int ntStatus; int status;
struct vnt_rcb *pRCB = NULL; struct vnt_rcb *rcb = NULL;
if (pDevice->Flags & fMP_DISCONNECTED) if (priv->Flags & fMP_DISCONNECTED)
return; return;
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"---->Rx Polling Thread\n"); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"---->Rx Polling Thread\n");
spin_lock_irq(&pDevice->lock);
while ((pDevice->Flags & fMP_POST_READS) && spin_lock_irq(&priv->lock);
MP_IS_READY(pDevice) &&
(pDevice->NumRecvFreeList != 0) ) { while ((priv->Flags & fMP_POST_READS) && MP_IS_READY(priv) &&
pRCB = pDevice->FirstRecvFreeList; (priv->NumRecvFreeList != 0)) {
pDevice->NumRecvFreeList--; rcb = priv->FirstRecvFreeList;
DequeueRCB(pDevice->FirstRecvFreeList, pDevice->LastRecvFreeList);
ntStatus = PIPEnsBulkInUsbRead(pDevice, pRCB); priv->NumRecvFreeList--;
}
pDevice->bIsRxWorkItemQueued = false; DequeueRCB(priv->FirstRecvFreeList, priv->LastRecvFreeList);
spin_unlock_irq(&pDevice->lock);
status = PIPEnsBulkInUsbRead(priv, rcb);
}
priv->bIsRxWorkItemQueued = false;
spin_unlock_irq(&priv->lock);
} }
void RXvFreeRCB(struct vnt_rcb *pRCB, int bReAllocSkb) void RXvFreeRCB(struct vnt_rcb *pRCB, int bReAllocSkb)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment