Skip to contentSkip to conversation

staging: vt6655: remove unused function in mac.c

PATCH In review Fred Chou 2 participants 2 messages Dec 10, 2014 – Jan 13, 2015 Staging

lore
Share & tools
lore

Fred Chou

author
#0 lore raw

PATCH 1/1 staging: vt6655: remove unused function in mac.c

From: Fred Chou <[email protected]>

Removed the unused function MACvGetShortRetryLimit, which also fixed the following sparse warning:
drivers/staging/vt6655/mac.c:162:6: warning:
symbol 'MACvGetShortRetryLimit' was not declared. Should it be static?

---
 drivers/staging/vt6655/mac.c | 19 -------------------
 1 file changed, 19 deletions(-)
drivers/staging/vt6655/mac.c +0 -19
index 8f0d652..09a91d1 100644
@@ -30,7 +30,6 @@
  *      MACbIsRegBitsOff - Test if All test Bits Off
  *      MACbIsIntDisable - Test if MAC interrupt disable
  *      MACvSetShortRetryLimit - Set 802.11 Short Retry limit
- *      MACvGetShortRetryLimit - Get 802.11 Short Retry limit
  *      MACvSetLongRetryLimit - Set 802.11 Long Retry limit
  *      MACvSetLoopbackMode - Set MAC Loopback Mode
  *      MACvSaveContext - Save Context of MAC Registers
@@ -146,24 +145,6 @@ void MACvSetShortRetryLimit(void __iomem *dwIoBase, unsigned char byRetryLimit)
 	VNSvOutPortB(dwIoBase + MAC_REG_SRT, byRetryLimit);
 }
 
-/*
- * Description:
- *      Get 802.11 Short Retry Limit
- *
- * Parameters:
- *  In:
- *      dwIoBase        - Base Address for MAC
- *  Out:
- *      pbyRetryLimit   - Retry Limit Get
- *
- * Return Value: none
- *
- */
-void MACvGetShortRetryLimit(void __iomem *dwIoBase, unsigned char *pbyRetryLimit)
-{
-	// get SRT
-	VNSvInPortB(dwIoBase + MAC_REG_SRT, pbyRetryLimit);
-}
 
 /*
  * Description:
Signature · 1 line
1.9.1
maintainer
#1 lore raw
Quoted 11 lines · Fred Chou

From: Fred Chou <[email protected]>

Removed the unused function MACvGetShortRetryLimit, which also fixed the following sparse warning:
drivers/staging/vt6655/mac.c:162:6: warning:
symbol 'MACvGetShortRetryLimit' was not declared. Should it be static?

---
 drivers/staging/vt6655/mac.c | 19 -------------------
 1 file changed, 19 deletions(-)

Doesn't apply to my tree :(