staging:rtl8188eu: Remove unnecessary variable assignments
authorHimangi Saraogi <himangi774@gmail.com>
Sun, 16 Mar 2014 22:03:50 +0000 (03:33 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Mar 2014 17:49:41 +0000 (10:49 -0700)
This patch removes unnecessary variable assignments which are
assigned immediately after the first initialization.

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/rtl8188e_mp.c

index cc71784..a4d057c 100644 (file)
@@ -115,14 +115,12 @@ void Hal_MPT_CCKTxPowerAdjust(struct adapter *Adapter, bool bInCH14)
 
 
                /* Write 0xa24 ~ 0xa27 */
-               TempVal2 = 0;
                TempVal2 = CCKSwingTable_Ch1_Ch13[CCKSwingIndex][2] +
                                (CCKSwingTable_Ch1_Ch13[CCKSwingIndex][3]<<8) +
                                (CCKSwingTable_Ch1_Ch13[CCKSwingIndex][4]<<16)+
                                (CCKSwingTable_Ch1_Ch13[CCKSwingIndex][5]<<24);
 
                /* Write 0xa28  0xa29 */
-               TempVal3 = 0;
                TempVal3 = CCKSwingTable_Ch1_Ch13[CCKSwingIndex][6] +
                                (CCKSwingTable_Ch1_Ch13[CCKSwingIndex][7]<<8);
        } else {
@@ -139,14 +137,12 @@ void Hal_MPT_CCKTxPowerAdjust(struct adapter *Adapter, bool bInCH14)
                                (CCKSwingTable_Ch14[CCKSwingIndex][1]<<8);
 
                /* Write 0xa24 ~ 0xa27 */
-               TempVal2 = 0;
                TempVal2 = CCKSwingTable_Ch14[CCKSwingIndex][2] +
                                (CCKSwingTable_Ch14[CCKSwingIndex][3]<<8) +
                                (CCKSwingTable_Ch14[CCKSwingIndex][4]<<16)+
                                (CCKSwingTable_Ch14[CCKSwingIndex][5]<<24);
 
                /* Write 0xa28  0xa29 */
-               TempVal3 = 0;
                TempVal3 = CCKSwingTable_Ch14[CCKSwingIndex][6] +
                                (CCKSwingTable_Ch14[CCKSwingIndex][7]<<8);
        }