From: Malcolm Priestley Date: Thu, 27 Feb 2014 23:06:13 +0000 (+0000) Subject: staging: vt6656: Remove unused variables packets* X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=07bc8398ad09f7cb0140ad472829fee5f284130c;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git staging: vt6656: Remove unused variables packets* These variables are unused and don't reach user. Remove them all. Signed-off-by: Malcolm Priestley Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/vt6656/device.h b/drivers/staging/vt6656/device.h index 1124aa458125..1aad3d325316 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 5ce583e814c1..fb9200e31e38 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) {