staging: rtl8192u: Remove defined but unused function
authorEbru Akagunduz <ebru.akagunduz@gmail.com>
Sat, 4 Oct 2014 19:25:46 +0000 (22:25 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Oct 2014 02:29:14 +0000 (10:29 +0800)
This patch fixes "symbol 'dm_change_rxpath_selection_setting'
was not declared. Should it be static?" sparse warning in
r8192U_dm.c After setting it as static, it causes to unused
function sparse warning, because it is not used anywhere.

Signed-off-by: Ebru Akagunduz <ebru.akagunduz@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/r8192U_dm.c

index b0b66fba563b10db8d41f6476894d6950273d88f..bda153d55f7a89faa11263da34cf380b68cd1519 100644 (file)
@@ -1810,85 +1810,6 @@ void dm_change_dynamic_initgain_thresh(struct net_device *dev, u32 dm_type,
        }
 }      /* DM_ChangeDynamicInitGainThresh */
 
-void
-dm_change_rxpath_selection_setting(
-       struct net_device *dev,
-       s32             DM_Type,
-       s32             DM_Value)
-{
-       struct r8192_priv *priv = ieee80211_priv(dev);
-       prate_adaptive  pRA = (prate_adaptive)&(priv->rate_adaptive);
-
-
-       if(DM_Type == 0)
-       {
-               if(DM_Value > 1)
-                       DM_Value = 1;
-               DM_RxPathSelTable.Enable = (u8)DM_Value;
-       }
-       else if(DM_Type == 1)
-       {
-               if(DM_Value > 1)
-                       DM_Value = 1;
-               DM_RxPathSelTable.DbgMode = (u8)DM_Value;
-       }
-       else if(DM_Type == 2)
-       {
-               if(DM_Value > 40)
-                       DM_Value = 40;
-               DM_RxPathSelTable.SS_TH_low = (u8)DM_Value;
-       }
-       else if(DM_Type == 3)
-       {
-               if(DM_Value > 25)
-                       DM_Value = 25;
-               DM_RxPathSelTable.diff_TH = (u8)DM_Value;
-       }
-       else if(DM_Type == 4)
-       {
-               if(DM_Value >= CCK_Rx_Version_MAX)
-                       DM_Value = CCK_Rx_Version_1;
-               DM_RxPathSelTable.cck_method= (u8)DM_Value;
-       }
-       else if(DM_Type == 10)
-       {
-               if(DM_Value > 100)
-                       DM_Value = 50;
-               DM_RxPathSelTable.rf_rssi[0] = (u8)DM_Value;
-       }
-       else if(DM_Type == 11)
-       {
-               if(DM_Value > 100)
-                       DM_Value = 50;
-               DM_RxPathSelTable.rf_rssi[1] = (u8)DM_Value;
-       }
-       else if(DM_Type == 12)
-       {
-               if(DM_Value > 100)
-                       DM_Value = 50;
-               DM_RxPathSelTable.rf_rssi[2] = (u8)DM_Value;
-       }
-       else if(DM_Type == 13)
-       {
-               if(DM_Value > 100)
-                       DM_Value = 50;
-               DM_RxPathSelTable.rf_rssi[3] = (u8)DM_Value;
-       }
-       else if(DM_Type == 20)
-       {
-               if(DM_Value > 1)
-                       DM_Value = 1;
-               pRA->ping_rssi_enable = (u8)DM_Value;
-       }
-       else if(DM_Type == 21)
-       {
-               if(DM_Value > 30)
-                       DM_Value = 30;
-               pRA->ping_rssi_thresh_for_ra = DM_Value;
-       }
-}
-
-
 /*-----------------------------------------------------------------------------
  * Function:   dm_dig_init()
  *