diff options
author | Ivan Safonov <insafonov@gmail.com> | 2015-10-27 11:31:10 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-28 20:09:08 -0400 |
commit | 853a46638e3cc574b6889c97ee9554afbf743efb (patch) | |
tree | e6d28a315b44f2cc8a58ca5c6a8de6537dc620c6 | |
parent | 5bee5d583bd4926310d62f36257e355deebbdfe2 (diff) |
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>
-rw-r--r-- | drivers/staging/rtl8188eu/hal/bb_cfg.c | 3 |
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, | |||
504 | u32 regaddr, u32 bitmask, u32 data) | 504 | u32 regaddr, u32 bitmask, u32 data) |
505 | { | 505 | { |
506 | struct hal_data_8188e *hal_data = GET_HAL_DATA(adapter); | 506 | struct hal_data_8188e *hal_data = GET_HAL_DATA(adapter); |
507 | u8 pwrGrpCnt = hal_data->pwrGroupCnt; | ||
508 | u32 * const power_level_offset = | 507 | u32 * const power_level_offset = |
509 | hal_data->MCSTxPowerLevelOriginalOffset[pwrGrpCnt]; | 508 | hal_data->MCSTxPowerLevelOriginalOffset[hal_data->pwrGroupCnt]; |
510 | 509 | ||
511 | if (regaddr == rTxAGC_A_Rate18_06) | 510 | if (regaddr == rTxAGC_A_Rate18_06) |
512 | power_level_offset[0] = data; | 511 | power_level_offset[0] = data; |