mirror of https://gitee.com/openkylin/linux.git
staging: rtl8723bs: hal: sdio_halinit.c: Remove variables
Remove the variables RegRATR and RegRRSR as they are never used after initialisation and assignment. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8915d9896b
commit
d4c33acb2a
|
@ -614,7 +614,6 @@ static void _InitOperationMode(struct adapter *padapter)
|
||||||
struct hal_com_data *pHalData;
|
struct hal_com_data *pHalData;
|
||||||
struct mlme_ext_priv *pmlmeext;
|
struct mlme_ext_priv *pmlmeext;
|
||||||
u8 regBwOpMode = 0;
|
u8 regBwOpMode = 0;
|
||||||
u32 regRATR = 0, regRRSR = 0;
|
|
||||||
|
|
||||||
pHalData = GET_HAL_DATA(padapter);
|
pHalData = GET_HAL_DATA(padapter);
|
||||||
pmlmeext = &padapter->mlmeextpriv;
|
pmlmeext = &padapter->mlmeextpriv;
|
||||||
|
@ -626,34 +625,24 @@ static void _InitOperationMode(struct adapter *padapter)
|
||||||
switch (pmlmeext->cur_wireless_mode) {
|
switch (pmlmeext->cur_wireless_mode) {
|
||||||
case WIRELESS_MODE_B:
|
case WIRELESS_MODE_B:
|
||||||
regBwOpMode = BW_OPMODE_20MHZ;
|
regBwOpMode = BW_OPMODE_20MHZ;
|
||||||
regRATR = RATE_ALL_CCK;
|
|
||||||
regRRSR = RATE_ALL_CCK;
|
|
||||||
break;
|
break;
|
||||||
case WIRELESS_MODE_A:
|
case WIRELESS_MODE_A:
|
||||||
/* RT_ASSERT(false, ("Error wireless a mode\n")); */
|
/* RT_ASSERT(false, ("Error wireless a mode\n")); */
|
||||||
break;
|
break;
|
||||||
case WIRELESS_MODE_G:
|
case WIRELESS_MODE_G:
|
||||||
regBwOpMode = BW_OPMODE_20MHZ;
|
regBwOpMode = BW_OPMODE_20MHZ;
|
||||||
regRATR = RATE_ALL_CCK | RATE_ALL_OFDM_AG;
|
|
||||||
regRRSR = RATE_ALL_CCK | RATE_ALL_OFDM_AG;
|
|
||||||
break;
|
break;
|
||||||
case WIRELESS_MODE_AUTO:
|
case WIRELESS_MODE_AUTO:
|
||||||
regBwOpMode = BW_OPMODE_20MHZ;
|
regBwOpMode = BW_OPMODE_20MHZ;
|
||||||
regRATR = RATE_ALL_CCK | RATE_ALL_OFDM_AG | RATE_ALL_OFDM_1SS | RATE_ALL_OFDM_2SS;
|
|
||||||
regRRSR = RATE_ALL_CCK | RATE_ALL_OFDM_AG;
|
|
||||||
break;
|
break;
|
||||||
case WIRELESS_MODE_N_24G:
|
case WIRELESS_MODE_N_24G:
|
||||||
/* It support CCK rate by default. */
|
/* It support CCK rate by default. */
|
||||||
/* CCK rate will be filtered out only when associated AP does not support it. */
|
/* CCK rate will be filtered out only when associated AP does not support it. */
|
||||||
regBwOpMode = BW_OPMODE_20MHZ;
|
regBwOpMode = BW_OPMODE_20MHZ;
|
||||||
regRATR = RATE_ALL_CCK | RATE_ALL_OFDM_AG | RATE_ALL_OFDM_1SS | RATE_ALL_OFDM_2SS;
|
|
||||||
regRRSR = RATE_ALL_CCK | RATE_ALL_OFDM_AG;
|
|
||||||
break;
|
break;
|
||||||
case WIRELESS_MODE_N_5G:
|
case WIRELESS_MODE_N_5G:
|
||||||
/* RT_ASSERT(false, ("Error wireless mode")); */
|
/* RT_ASSERT(false, ("Error wireless mode")); */
|
||||||
regBwOpMode = BW_OPMODE_5G;
|
regBwOpMode = BW_OPMODE_5G;
|
||||||
regRATR = RATE_ALL_OFDM_AG | RATE_ALL_OFDM_1SS | RATE_ALL_OFDM_2SS;
|
|
||||||
regRRSR = RATE_ALL_OFDM_AG;
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default: /* for MacOSX compiler warning. */
|
default: /* for MacOSX compiler warning. */
|
||||||
|
|
Loading…
Reference in New Issue