* [PATCH 1/5] staging: vt6656: s_nsInterruptUsbIoCompleteRead set intBuf.bInUse to true
@ 2014-02-17 21:12 Malcolm Priestley
0 siblings, 0 replies; only message in thread
From: Malcolm Priestley @ 2014-02-17 21:12 UTC (permalink / raw)
To: gregkh; +Cc: linux-wireless
intBuf.bInUse is set to false set back to true on successful usb_submit_urb
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
---
drivers/staging/vt6656/usbpipe.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/vt6656/usbpipe.c b/drivers/staging/vt6656/usbpipe.c
index 01cf099..258eec1 100644
--- a/drivers/staging/vt6656/usbpipe.c
+++ b/drivers/staging/vt6656/usbpipe.c
@@ -400,9 +400,12 @@ static void s_nsInterruptUsbIoCompleteRead(struct urb *urb)
pDevice);
ntStatus = usb_submit_urb(pDevice->pInterruptURB, GFP_ATOMIC);
- if (ntStatus != 0) {
- DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"Submit int URB failed %d\n", ntStatus);
- }
+ if (ntStatus) {
+ DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO
+ "Submit int URB failed %d\n", ntStatus);
+ } else {
+ pDevice->intBuf.bInUse = true;
+ }
}
//
// We return STATUS_MORE_PROCESSING_REQUIRED so that the completion
--
1.9.rc1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-02-17 21:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-17 21:12 [PATCH 1/5] staging: vt6656: s_nsInterruptUsbIoCompleteRead set intBuf.bInUse to true Malcolm Priestley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox