Skip to contentSkip to conversation

staging: vt6656: card.c: Change return of CARDbAddBasicRate to void

PATCH New Marcos Paulo de Souza 1 participant 1 message Nov 30, 2011 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 5/5 staging: vt6656: card.c: Change return of CARDbAddBasicRate to void

In all locations that call this function ignore your returna, so remove it.

Cc Greg kroah-Hartman <[email protected]>
Cc Forest Bond <[email protected]>
---
 drivers/staging/vt6656/card.c |    4 +---
 drivers/staging/vt6656/card.h |    2 +-
 2 files changed, 2 insertions(+), 4 deletions(-)
drivers/staging/vt6656/card.c +1 -3
index a49053b..1574e8e 100644
@@ -607,7 +607,7 @@ BYTE ii;
  * Return Value: TRUE if succeeded; FALSE if failed.
  *
  */
-BOOL CARDbAddBasicRate(void *pDeviceHandler, WORD wRateIdx)
+void CARDbAddBasicRate(void *pDeviceHandler, WORD wRateIdx)
 {
 PSDevice    pDevice = (PSDevice) pDeviceHandler;
 WORD wRate = (WORD)(1<<wRateIdx);
@@ -616,8 +616,6 @@ WORD wRate = (WORD)(1<<wRateIdx);
 
     //Determines the highest basic rate.
     CARDvUpdateBasicTopRate(pDevice);
-
-    return(TRUE);
 }
 
 BOOL CARDbIsOFDMinBasicRate(void *pDeviceHandler)
drivers/staging/vt6656/card.h +1 -1
index 6c91343..c579570 100644
@@ -65,7 +65,7 @@ BOOL CARDbSetMediaChannel(void *pDeviceHandler,
 void CARDvSetRSPINF(void *pDeviceHandler, BYTE byBBType);
 void vUpdateIFS(void *pDeviceHandler);
 void CARDvUpdateBasicTopRate(void *pDeviceHandler);
-BOOL CARDbAddBasicRate(void *pDeviceHandler, WORD wRateIdx);
+void CARDbAddBasicRate(void *pDeviceHandler, WORD wRateIdx);
 BOOL CARDbIsOFDMinBasicRate(void *pDeviceHandler);
 void CARDvAdjustTSF(void *pDeviceHandler, BYTE byRxRate,
 		    QWORD qwBSSTimestamp, QWORD qwLocalTSF);
Signature · 1 line
1.7.4.4