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

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: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent afc5eeb8
...@@ -749,21 +749,22 @@ vt6656_probe(struct usb_interface *intf, const struct usb_device_id *id) ...@@ -749,21 +749,22 @@ vt6656_probe(struct usb_interface *intf, const struct usb_device_id *id)
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];
pTxContext = pDevice->apTD[ii];
/* deallocate URBs */ /* deallocate URBs */
if (pTxContext->pUrb) { if (tx_context->pUrb) {
usb_kill_urb(pTxContext->pUrb); usb_kill_urb(tx_context->pUrb);
usb_free_urb(pTxContext->pUrb); usb_free_urb(tx_context->pUrb);
} }
kfree(pTxContext);
kfree(tx_context);
} }
return; return;
} }
......
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