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>
This commit is contained in:
parent
3f38290e3b
commit
e3a8fa1748
1 changed files with 3 additions and 4 deletions
|
@ -472,15 +472,14 @@ static void s_nsBulkInUsbIoCompleteRead(struct urb *urb)
|
||||||
unsigned long bytesRead;
|
unsigned long bytesRead;
|
||||||
int bIndicateReceive = false;
|
int bIndicateReceive = false;
|
||||||
int bReAllocSkb = false;
|
int bReAllocSkb = false;
|
||||||
int status;
|
|
||||||
|
|
||||||
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"---->s_nsBulkInUsbIoCompleteRead\n");
|
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"---->s_nsBulkInUsbIoCompleteRead\n");
|
||||||
status = urb->status;
|
|
||||||
bytesRead = urb->actual_length;
|
bytesRead = urb->actual_length;
|
||||||
|
|
||||||
if (status) {
|
if (urb->status) {
|
||||||
pDevice->ulBulkInError++;
|
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
|
//todo...xxxxxx
|
||||||
// if (status == USBD_STATUS_CRC) {
|
// if (status == USBD_STATUS_CRC) {
|
||||||
// pDevice->ulBulkInContCRCError++;
|
// pDevice->ulBulkInContCRCError++;
|
||||||
|
|
Loading…
Add table
Reference in a new issue