Skip to contentSkip to conversation

staging: vt6656: int.c, int.h: Change return of function to void

PATCH In review Marcos Paulo de Souza 1 participant 1 message Dec 20, 2011 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 staging: vt6656: int.c, int.h: Change return of function to void

This patch removes the int return of function INTnsProcessData, because nobody uses this return.

---
 drivers/staging/vt6656/int.c |    5 +----
 drivers/staging/vt6656/int.h |    2 +-
 2 files changed, 2 insertions(+), 5 deletions(-)
drivers/staging/vt6656/int.c +1 -4
index c95833a..0a11423 100644
@@ -92,9 +92,8 @@ void INTvWorkItem(void *Context)
 	spin_unlock_irq(&pDevice->lock);
 }
 
-int INTnsProcessData(PSDevice pDevice)
+void INTnsProcessData(PSDevice pDevice)
 {
-	int status = STATUS_SUCCESS;
 	PSINTData	pINTData;
 	PSMgmtObject	pMgmt = &(pDevice->sMgmtObj);
 	struct net_device_stats *pStats = &pDevice->stats;
@@ -218,6 +217,4 @@ int INTnsProcessData(PSDevice pDevice)
 			pDevice->scStatistic.ullTxBroadcastBytes;
 	pStats->tx_errors = pDevice->scStatistic.dwTsrErr;
 	pStats->tx_dropped = pDevice->scStatistic.dwTsrErr;
-
-	return status;
 }
drivers/staging/vt6656/int.h +1 -1
index 3176c8d..a5d96b9 100644
@@ -68,6 +68,6 @@ SINTData, *PSINTData;
 /*---------------------  Export Functions  --------------------------*/
 
 void INTvWorkItem(void *Context);
-int INTnsProcessData(PSDevice pDevice);
+void INTnsProcessData(PSDevice pDevice);
 
 #endif /* __INT_H__ */
Signature · 1 line
1.7.4.4