From: Malcolm Priestley Date: Tue, 25 Feb 2014 20:51:46 +0000 (+0000) Subject: staging: vt6656: s_nsBulkInUsbIoCompleteRead get rid of status. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e3a8fa17487455c7fbdcb48e243df667441486f8;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git staging: vt6656: s_nsBulkInUsbIoCompleteRead get rid of status. Just use urb->status directly. Signed-off-by: Malcolm Priestley Signed-off-by: Greg Kroah-Hartman --- 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++;