staging: vt6656: clean up device_free_tx_bufs

Clean up white space and camel case.

Camel case changes
pDevice -> priv
pTxContext -> tx_context

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:36 +00:00 committed by Greg Kroah-Hartman
parent afc5eeb86b
commit f2625c24d9

View file

@ -749,22 +749,23 @@ err_nomem:
return rc; return rc;
} }
static void device_free_tx_bufs(struct vnt_private *pDevice) static void device_free_tx_bufs(struct vnt_private *priv)
{ {
struct vnt_usb_send_context *pTxContext; struct vnt_usb_send_context *tx_context;
int ii; int ii;
for (ii = 0; ii < pDevice->cbTD; ii++) { for (ii = 0; ii < priv->cbTD; ii++) {
tx_context = priv->apTD[ii];
/* deallocate URBs */
if (tx_context->pUrb) {
usb_kill_urb(tx_context->pUrb);
usb_free_urb(tx_context->pUrb);
}
pTxContext = pDevice->apTD[ii]; kfree(tx_context);
/* deallocate URBs */ }
if (pTxContext->pUrb) {
usb_kill_urb(pTxContext->pUrb); return;
usb_free_urb(pTxContext->pUrb);
}
kfree(pTxContext);
}
return;
} }
static void device_free_rx_bufs(struct vnt_private *priv) static void device_free_rx_bufs(struct vnt_private *priv)