These variables are unused and don't reach user. Remove them all. Signed-off-by: Malcolm Priestley <tvboxspy@xxxxxxxxx> --- drivers/staging/vt6656/device.h | 5 ----- drivers/staging/vt6656/usbpipe.c | 6 +----- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/drivers/staging/vt6656/device.h b/drivers/staging/vt6656/device.h index 1124aa4..1aad3d3 100644 --- a/drivers/staging/vt6656/device.h +++ b/drivers/staging/vt6656/device.h @@ -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; diff --git a/drivers/staging/vt6656/usbpipe.c b/drivers/staging/vt6656/usbpipe.c index 5ce583e..fb9200e 100644 --- a/drivers/staging/vt6656/usbpipe.c +++ b/drivers/staging/vt6656/usbpipe.c @@ -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) { -- 1.9.0 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html