diff mbox

[OPW,kernel] staging:rtl8188eu: Remove unnecessary variable assignments

Message ID 20140316220350.GA16746@himangi-Inspiron-N5110gmail.com
State New, archived
Headers show

Commit Message

HIMANGI SARAOGI March 16, 2014, 10:03 p.m. UTC
This patch removes unnecessary variable assignments which are
assigned immediately after the first initialization.

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
---
 drivers/staging/rtl8188eu/hal/rtl8188e_mp.c |    4 ----
 1 file changed, 4 deletions(-)

Comments

Paul E. McKenney March 17, 2014, 6:27 p.m. UTC | #1
On Mon, Mar 17, 2014 at 03:33:50AM +0530, Himangi Saraogi wrote:
> 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>

> ---
>  drivers/staging/rtl8188eu/hal/rtl8188e_mp.c |    4 ----
>  1 file changed, 4 deletions(-)
> 
> diff --git a/drivers/staging/rtl8188eu/hal/rtl8188e_mp.c b/drivers/staging/rtl8188eu/hal/rtl8188e_mp.c
> index cc71784..a4d057c 100644
> --- a/drivers/staging/rtl8188eu/hal/rtl8188e_mp.c
> +++ b/drivers/staging/rtl8188eu/hal/rtl8188e_mp.c
> @@ -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);
>  	}
> -- 
> 1.7.9.5
> 
> -- 
> You received this message because you are subscribed to the Google Groups "opw-kernel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to opw-kernel+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
diff mbox

Patch

diff --git a/drivers/staging/rtl8188eu/hal/rtl8188e_mp.c b/drivers/staging/rtl8188eu/hal/rtl8188e_mp.c
index cc71784..a4d057c 100644
--- a/drivers/staging/rtl8188eu/hal/rtl8188e_mp.c
+++ b/drivers/staging/rtl8188eu/hal/rtl8188e_mp.c
@@ -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);
 	}