staging: vt6656: clean up device_free_rx_bufs.

cleanup white space and camel case.

Camel case changes
pDevice -> priv
pRCB -> rcb

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Malcolm Priestley 2014-02-28 23:58:35 +00:00 committed by Greg Kroah-Hartman
parent 35491de718
commit afc5eeb86b
1 changed files with 17 additions and 15 deletions

View File

@ -767,24 +767,26 @@ static void device_free_tx_bufs(struct vnt_private *pDevice)
return; return;
} }
static void device_free_rx_bufs(struct vnt_private *pDevice) static void device_free_rx_bufs(struct vnt_private *priv)
{ {
struct vnt_rcb *pRCB; struct vnt_rcb *rcb;
int ii; int ii;
for (ii = 0; ii < pDevice->cbRD; ii++) { for (ii = 0; ii < priv->cbRD; ii++) {
rcb = priv->apRCB[ii];
pRCB = pDevice->apRCB[ii];
/* deallocate URBs */ /* deallocate URBs */
if (pRCB->pUrb) { if (rcb->pUrb) {
usb_kill_urb(pRCB->pUrb); usb_kill_urb(rcb->pUrb);
usb_free_urb(pRCB->pUrb); usb_free_urb(rcb->pUrb);
} }
/* deallocate skb */ /* deallocate skb */
if (pRCB->skb) if (rcb->skb)
dev_kfree_skb(pRCB->skb); dev_kfree_skb(rcb->skb);
} }
kfree(pDevice->pRCBMem);
kfree(priv->pRCBMem);
return; return;
} }