]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: rtl8188eu: pwrGrpCnt variable removed in store_pwrindex_offset function
authorIvan Safonov <insafonov@gmail.com>
Tue, 27 Oct 2015 15:31:10 +0000 (22:31 +0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Oct 2015 00:09:08 +0000 (09:09 +0900)
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>
drivers/staging/rtl8188eu/hal/bb_cfg.c

index 7c52303939e5091c87364badd17f0e7cc56ea1ac..f58a8222c899a8f67b33c87df3b3389f18ca622b 100644 (file)
@@ -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;