diff options
author | Malcolm Priestley <tvboxspy@gmail.com> | 2014-03-01 03:58:36 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-03-01 04:48:36 +0400 |
commit | f2625c24d9e73a2e70a0368914d7928ed20cf936 (patch) | |
tree | d38a0bb7f56c739b059d3f503e1703bad5ee913f /drivers/staging/vt6656 | |
parent | afc5eeb86bc3d6ab4fb996ba3a36276aa5878c4e (diff) | |
download | linux-f2625c24d9e73a2e70a0368914d7928ed20cf936.tar.xz |
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>
Diffstat (limited to 'drivers/staging/vt6656')
-rw-r--r-- | drivers/staging/vt6656/main_usb.c | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/drivers/staging/vt6656/main_usb.c b/drivers/staging/vt6656/main_usb.c index 58fb3770652f..669e4f3e0406 100644 --- a/drivers/staging/vt6656/main_usb.c +++ b/drivers/staging/vt6656/main_usb.c @@ -749,22 +749,23 @@ err_nomem: 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; - int ii; + struct vnt_usb_send_context *tx_context; + 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]; - /* deallocate URBs */ - if (pTxContext->pUrb) { - usb_kill_urb(pTxContext->pUrb); - usb_free_urb(pTxContext->pUrb); - } - kfree(pTxContext); - } - return; + kfree(tx_context); + } + + return; } static void device_free_rx_bufs(struct vnt_private *priv) |