summaryrefslogtreecommitdiff
path: root/drivers/staging/vt6656/usbpipe.c
diff options
context:
space:
mode:
authorAndres More <more.andres@gmail.com>2010-06-21 14:27:24 (GMT)
committerGreg Kroah-Hartman <gregkh@suse.de>2010-06-22 22:38:08 (GMT)
commit2a1a17498bcaea1580a4fa051286bc97d4c5e730 (patch)
tree8542ee2e66c10cf2bead8f7d4ba9e453bf6f866a /drivers/staging/vt6656/usbpipe.c
parentae6eb75c63bcc21ffdb8c617a09d35b4a4ef11fe (diff)
downloadlinux-fsl-qoriq-2a1a17498bcaea1580a4fa051286bc97d4c5e730.tar.xz
Staging: vt6656: removed '#if 0' definitions
Removed code in .c files that was being skipped by the preprocessor Signed-off-by: Andres More <more.andres@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/vt6656/usbpipe.c')
-rw-r--r--drivers/staging/vt6656/usbpipe.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/drivers/staging/vt6656/usbpipe.c b/drivers/staging/vt6656/usbpipe.c
index fd2355e..e1d4102 100644
--- a/drivers/staging/vt6656/usbpipe.c
+++ b/drivers/staging/vt6656/usbpipe.c
@@ -381,17 +381,6 @@ PIPEnsInterruptRead(
// Now that we have created the urb, we will send a
// request to the USB device object.
//
-#if 0 //reserve int URB submit
- usb_fill_int_urb(pDevice->pInterruptURB,
- pDevice->usb,
- usb_rcvintpipe(pDevice->usb, 1),
- (void *) pDevice->intBuf.pDataBuf,
- MAX_INTERRUPT_SIZE,
- s_nsInterruptUsbIoCompleteRead,
- pDevice,
- pDevice->int_interval
- );
-#else //replace int URB submit by bulk transfer
#ifndef Safe_Close
usb_fill_int_urb(pDevice->pInterruptURB,
pDevice->usb,
@@ -414,7 +403,6 @@ usb_fill_bulk_urb(pDevice->pInterruptURB,
s_nsInterruptUsbIoCompleteRead,
pDevice);
#endif
-#endif
ntStatus = usb_submit_urb(pDevice->pInterruptURB, GFP_ATOMIC);
if (ntStatus != 0) {
@@ -495,12 +483,6 @@ s_nsInterruptUsbIoCompleteRead(
if (pDevice->fKillEventPollingThread != TRUE) {
- #if 0 //reserve int URB submit
- ntStatus = usb_submit_urb(urb, GFP_ATOMIC);
- if (ntStatus != 0) {
- DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"Re-Submit int URB failed %d\n", ntStatus);
- }
- #else //replace int URB submit by bulk transfer
#ifdef Safe_Close
usb_fill_bulk_urb(pDevice->pInterruptURB,
pDevice->usb,
@@ -518,7 +500,6 @@ s_nsInterruptUsbIoCompleteRead(
#else
tasklet_schedule(&pDevice->EventWorkItem);
#endif
-#endif
}
//
// We return STATUS_MORE_PROCESSING_REQUIRED so that the completion