diff options
| author | 2014-02-25 20:51:46 +0000 | |
|---|---|---|
| committer | 2014-02-27 13:04:36 -0800 | |
| commit | e3a8fa17487455c7fbdcb48e243df667441486f8 (patch) | |
| tree | 23b02cda86500617383eae7f90de4c1c87d38c04 | |
| parent | staging: vt6656: clean up PIPEnsSendBulkOut. (diff) | |
staging: vt6656: s_nsBulkInUsbIoCompleteRead get rid of status.
Just use urb->status directly.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| -rw-r--r-- | drivers/staging/vt6656/usbpipe.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/staging/vt6656/usbpipe.c b/drivers/staging/vt6656/usbpipe.c index 9a922b4a6974..2f8e8e6153fe 100644 --- a/drivers/staging/vt6656/usbpipe.c +++ b/drivers/staging/vt6656/usbpipe.c @@ -472,15 +472,14 @@ static void s_nsBulkInUsbIoCompleteRead(struct urb *urb) unsigned long bytesRead; int bIndicateReceive = false; int bReAllocSkb = false; - int status; DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"---->s_nsBulkInUsbIoCompleteRead\n"); - status = urb->status; + bytesRead = urb->actual_length; - if (status) { + if (urb->status) { pDevice->ulBulkInError++; - DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"BULK In failed %d\n", status); + DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"BULK In failed %d\n", urb->status); //todo...xxxxxx // if (status == USBD_STATUS_CRC) { // pDevice->ulBulkInContCRCError++; |
