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

staging: vt6656: clean up PIPEnsInterruptRead.

Remove comments, white space and camel case.

Camel case changes
pDevice -> priv
ntStatus -> status
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 59858f5e
...@@ -295,42 +295,39 @@ static void s_nsControlInUsbIoCompleteRead(struct urb *urb) ...@@ -295,42 +295,39 @@ static void s_nsControlInUsbIoCompleteRead(struct urb *urb)
* *
*/ */
int PIPEnsInterruptRead(struct vnt_private *pDevice) int PIPEnsInterruptRead(struct vnt_private *priv)
{ {
int ntStatus = STATUS_FAILURE; int status = STATUS_FAILURE;
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"---->s_nsStartInterruptUsbRead()\n"); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO
"---->s_nsStartInterruptUsbRead()\n");
if(pDevice->intBuf.bInUse == true){ if (priv->intBuf.bInUse == true)
return (STATUS_FAILURE); return STATUS_FAILURE;
}
pDevice->intBuf.bInUse = true;
// pDevice->bEventAvailable = false;
pDevice->ulIntInPosted++;
// priv->intBuf.bInUse = true;
// Now that we have created the urb, we will send a priv->ulIntInPosted++;
// request to the USB device object.
//
usb_fill_int_urb(pDevice->pInterruptURB, usb_fill_int_urb(priv->pInterruptURB,
pDevice->usb, priv->usb,
usb_rcvbulkpipe(pDevice->usb, 1), usb_rcvbulkpipe(priv->usb, 1),
pDevice->intBuf.pDataBuf, priv->intBuf.pDataBuf,
MAX_INTERRUPT_SIZE, MAX_INTERRUPT_SIZE,
s_nsInterruptUsbIoCompleteRead, s_nsInterruptUsbIoCompleteRead,
pDevice, priv,
pDevice->int_interval); priv->int_interval);
ntStatus = usb_submit_urb(pDevice->pInterruptURB, GFP_ATOMIC); status = usb_submit_urb(priv->pInterruptURB, GFP_ATOMIC);
if (ntStatus) { if (status) {
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO
"Submit int URB failed %d\n", ntStatus); "Submit int URB failed %d\n", status);
pDevice->intBuf.bInUse = false; priv->intBuf.bInUse = false;
} }
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"<----s_nsStartInterruptUsbRead Return(%x)\n",ntStatus); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO
return ntStatus; "<----s_nsStartInterruptUsbRead Return(%x)\n", status);
return status;
} }
/* /*
......
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