staging: vt6656: Remove all variables ulInt*
authorMalcolm Priestley <tvboxspy@gmail.com>
Thu, 27 Feb 2014 23:06:10 +0000 (23:06 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Feb 2014 01:09:18 +0000 (17:09 -0800)
None of these variables reach user or used by debug messages.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/device.h
drivers/staging/vt6656/usbpipe.c

index 50262dc9ef68d6d27d127bc5ec5cb4ade07616a2..2574029dd05fd9f0bcf623b2e8fb143dc7db3f6f 100644 (file)
@@ -423,12 +423,6 @@ struct vnt_private {
        /* default config from file by user setting */
        DEFAULT_CONFIG config_file;
 
-       /* Statistic for USB */
-       unsigned long ulIntInPosted;
-       unsigned long ulIntInError;
-       unsigned long ulIntInContCRCError;
-       unsigned long ulIntInBytesRead;
-
        /* Version control */
        u16 wFirmwareVersion;
        u8 byLocalID;
index ce396b9c0842c3822ca09411d50ef7186e783c38..0a3aeec7965d84999b8940a1c2d87660e403d0b3 100644 (file)
@@ -306,7 +306,6 @@ int PIPEnsInterruptRead(struct vnt_private *priv)
                return STATUS_FAILURE;
 
        priv->int_buf.in_use = true;
-       priv->ulIntInPosted++;
 
        usb_fill_int_urb(priv->pInterruptURB,
                priv->usb,
@@ -377,8 +376,6 @@ static void s_nsInterruptUsbIoCompleteRead(struct urb *urb)
                DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO
                        "IntUSBIoCompleteControl STATUS = %d\n", status);
        } else {
-               priv->ulIntInBytesRead += (unsigned long)urb->actual_length;
-               priv->ulIntInContCRCError = 0;
                priv->bEventAvailable = true;
                INTnsProcessData(priv);
        }