diff mbox

[OPW,kernel,v2,2/5] staging: rtl8192u: Delete 'DM_CTSToSelfSetting' function in r8192U_dm.c

Message ID f96a2fa867537c2a953d612591d5e0753c23fe7c.1395215667.git.anarey@gmail.com
State New, archived
Headers show

Commit Message

Ana Rey March 19, 2014, 10:54 a.m. UTC
Delete the DM_CTSToSelfSetting function that is not used in
anywhere in the driver.

Fix sparse warnings:
drivers/staging/rtl8192u/r8192U_dm.c:2623:6: warning: symbol 'DM_CTSToSelfSetting' was not declared. Should it be static?

Signed-off-by: Ana Rey <anarey@gmail.com>
Acked-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
---
 drivers/staging/rtl8192u/r8192U_dm.c | 20 --------------------
 1 file changed, 20 deletions(-)

Comments

Greg KH March 19, 2014, 4:30 p.m. UTC | #1
On Wed, Mar 19, 2014 at 11:54:54AM +0100, Ana Rey wrote:
> Delete the DM_CTSToSelfSetting function that is not used in
> anywhere in the driver.
> 
> Fix sparse warnings:
> drivers/staging/rtl8192u/r8192U_dm.c:2623:6: warning: symbol 'DM_CTSToSelfSetting' was not declared. Should it be static?
> 
> Signed-off-by: Ana Rey <anarey@gmail.com>
> Acked-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
> ---
>  drivers/staging/rtl8192u/r8192U_dm.c | 20 --------------------
>  1 file changed, 20 deletions(-)

This patch failed to apply, but the other 4 did, which is odd.

Can you refresh it against my latest tree and resend?

thanks,

greg k-h
diff mbox

Patch

diff --git a/drivers/staging/rtl8192u/r8192U_dm.c b/drivers/staging/rtl8192u/r8192U_dm.c
index 51ce233..de274eb 100644
--- a/drivers/staging/rtl8192u/r8192U_dm.c
+++ b/drivers/staging/rtl8192u/r8192U_dm.c
@@ -2629,26 +2629,6 @@  dm_CheckEdcaTurbo_EXIT:
 	lastRxOkCnt = priv->stats.rxbytesunicast;
 }	// dm_CheckEdcaTurbo
 
-void DM_CTSToSelfSetting(struct net_device *dev, u32 DM_Type, u32 DM_Value)
-{
-	struct r8192_priv *priv = ieee80211_priv((struct net_device *)dev);
-
-	if (DM_Type == 0)	// CTS to self disable/enable
-	{
-		if(DM_Value > 1)
-			DM_Value = 1;
-		priv->ieee80211->bCTSToSelfEnable = (bool)DM_Value;
-		//DbgPrint("pMgntInfo->bCTSToSelfEnable = %d\n", pMgntInfo->bCTSToSelfEnable);
-	}
-	else if(DM_Type == 1) //CTS to self Th
-	{
-		if(DM_Value >= 50)
-			DM_Value = 50;
-		priv->ieee80211->CTSToSelfTH = (u8)DM_Value;
-		//DbgPrint("pMgntInfo->CTSToSelfTH = %d\n", pMgntInfo->CTSToSelfTH);
-	}
-}
-
 static void dm_init_ctstoself(struct net_device *dev)
 {
 	struct r8192_priv *priv = ieee80211_priv((struct net_device *)dev);