staging: vt6656: Remove unused variables packets*
authorMalcolm Priestley <tvboxspy@gmail.com>
Thu, 27 Feb 2014 23:06:13 +0000 (23:06 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Feb 2014 01:09:19 +0000 (17:09 -0800)
These variables are unused and don't reach user.

Remove them all.

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 1124aa458125c16a14dbfe6e04e9ac4213e6cc28..1aad3d3253166cb64d20865189284f8b149c95b4 100644 (file)
@@ -441,11 +441,6 @@ struct vnt_private {
        int bExistSWNetAddr;
 
        /* Maintain statistical debug info. */
-       unsigned long packetsReceived;
-       unsigned long packetsReceivedDropped;
-       unsigned long packetsReceivedOverflow;
-       unsigned long packetsSent;
-       unsigned long packetsSentDropped;
        unsigned long SendContextsInUse;
        unsigned long RcvBuffersInUse;
 
index 5ce583e814c139eb4a5e825cb12d6b032bf3b753..fb9200e31e389d399c88c135f497121d125ea9cf 100644 (file)
@@ -627,14 +627,10 @@ static void s_nsBulkOutIoCompleteWrite(struct urb *urb)
 
                priv->dev->trans_start = jiffies;
 
-               if (status == STATUS_SUCCESS) {
-                       priv->packetsSent++;
-               } else {
+               if (status != STATUS_SUCCESS) {
                        DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO
                                "Send USB error! [%08xh]\n", status);
-                       priv->packetsSentDropped++;
                }
-
        }
 
        if (priv->bLinkPass == true) {
This page took 0.131295 seconds and 5 git commands to generate.