summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8188eu
diff options
context:
space:
mode:
authorIvan Safonov <insafonov@gmail.com>2015-10-27 22:31:10 +0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-29 09:09:08 +0900
commit853a46638e3cc574b6889c97ee9554afbf743efb (patch)
treee6d28a315b44f2cc8a58ca5c6a8de6537dc620c6 /drivers/staging/rtl8188eu
parent5bee5d583bd4926310d62f36257e355deebbdfe2 (diff)
downloadblackbird-op-linux-853a46638e3cc574b6889c97ee9554afbf743efb.tar.gz
blackbird-op-linux-853a46638e3cc574b6889c97ee9554afbf743efb.zip
staging: rtl8188eu: pwrGrpCnt variable removed in store_pwrindex_offset function
This variable used only once in the beginning of the function, it can be removed. Signed-off-by: Ivan Safonov <insafonov@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8188eu')
-rw-r--r--drivers/staging/rtl8188eu/hal/bb_cfg.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/rtl8188eu/hal/bb_cfg.c b/drivers/staging/rtl8188eu/hal/bb_cfg.c
index 7c52303939e5..f58a8222c899 100644
--- a/drivers/staging/rtl8188eu/hal/bb_cfg.c
+++ b/drivers/staging/rtl8188eu/hal/bb_cfg.c
@@ -504,9 +504,8 @@ static void store_pwrindex_offset(struct adapter *adapter,
u32 regaddr, u32 bitmask, u32 data)
{
struct hal_data_8188e *hal_data = GET_HAL_DATA(adapter);
- u8 pwrGrpCnt = hal_data->pwrGroupCnt;
u32 * const power_level_offset =
- hal_data->MCSTxPowerLevelOriginalOffset[pwrGrpCnt];
+ hal_data->MCSTxPowerLevelOriginalOffset[hal_data->pwrGroupCnt];
if (regaddr == rTxAGC_A_Rate18_06)
power_level_offset[0] = data;
OpenPOWER on IntegriCloud