Commit 88c4d12c authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Greg Kroah-Hartman

staging: vt6656: Remove all variables ulBulk*

None of these variables reach user or in any debug messages.

Remove them all.
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a6eb9af9
......@@ -424,16 +424,6 @@ struct vnt_private {
DEFAULT_CONFIG config_file;
/* Statistic for USB */
unsigned long ulBulkInPosted;
unsigned long ulBulkInError;
unsigned long ulBulkInContCRCError;
unsigned long ulBulkInBytesRead;
unsigned long ulBulkOutPosted;
unsigned long ulBulkOutError;
unsigned long ulBulkOutContCRCError;
unsigned long ulBulkOutBytesWrite;
unsigned long ulIntInPosted;
unsigned long ulIntInError;
unsigned long ulIntInContCRCError;
......
......@@ -372,7 +372,6 @@ static void s_nsInterruptUsbIoCompleteRead(struct urb *urb)
"s_nsInterruptUsbIoCompleteRead Status %d\n", status);
if (status != STATUS_SUCCESS) {
priv->ulBulkInError++;
priv->int_buf.in_use = false;
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO
......@@ -419,8 +418,6 @@ int PIPEnsBulkInUsbRead(struct vnt_private *priv, struct vnt_rcb *rcb)
if (priv->Flags & fMP_DISCONNECTED)
return STATUS_FAILURE;
priv->ulBulkInPosted++;
urb = rcb->pUrb;
if (rcb->skb == NULL) {
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"rcb->skb is null\n");
......@@ -473,8 +470,6 @@ static void s_nsBulkInUsbIoCompleteRead(struct urb *urb)
switch (urb->status) {
case 0:
priv->ulBulkInContCRCError = 0;
priv->ulBulkInBytesRead += urb->actual_length;
break;
case -ECONNRESET:
case -ENOENT:
......@@ -482,7 +477,6 @@ static void s_nsBulkInUsbIoCompleteRead(struct urb *urb)
return;
case -ETIMEDOUT:
default:
priv->ulBulkInError++;
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO
"BULK In failed %d\n", urb->status);
break;
......@@ -541,7 +535,6 @@ int PIPEnsSendBulkOut(struct vnt_private *priv,
}
urb = context->pUrb;
priv->ulBulkOutPosted++;
usb_fill_bulk_urb(urb,
priv->usb,
......@@ -622,12 +615,9 @@ static void s_nsBulkOutIoCompleteWrite(struct urb *urb)
if (status == STATUS_SUCCESS) {
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO
"Write %d bytes\n", (int)buf_len);
priv->ulBulkOutBytesWrite += buf_len;
priv->ulBulkOutContCRCError = 0;
} else {
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO
"BULK Out failed %d\n", status);
priv->ulBulkOutError++;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment