Search Linux Wireless

Re: [PATCH 4/4] Staging: rtl8723au: core: Remove unused variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Shraddha Barke <shraddha.6596@xxxxxxxxx> writes:
> This patch discards the variable as it is not used anywhere throughout
> the kernel.
>
> Signed-off-by: Shraddha Barke <shraddha.6596@xxxxxxxxx>
> ---
>  drivers/staging/rtl8723au/core/rtw_security.c | 9 ---------
>  1 file changed, 9 deletions(-)

Acked-by: Jes Sorensen <Jes.Sorensen@xxxxxxxxxx>

>
> diff --git a/drivers/staging/rtl8723au/core/rtw_security.c b/drivers/staging/rtl8723au/core/rtw_security.c
> index 3d40bab..82518cd 100644
> --- a/drivers/staging/rtl8723au/core/rtw_security.c
> +++ b/drivers/staging/rtl8723au/core/rtw_security.c
> @@ -608,7 +608,6 @@ int rtw_tkip_encrypt23a(struct rtw_adapter *padapter,
>  	u8 hw_hdr_offset = 0;
>  	struct arc4context mycontext;
>  	int curfragnum, length;
> -	u32 prwskeylen;
>  	u8 *pframe, *payload, *iv, *prwskey;
>  	union pn48 dot11txpn;
>  	struct sta_info *stainfo;
> @@ -655,8 +654,6 @@ int rtw_tkip_encrypt23a(struct rtw_adapter *padapter,
>  	else
>  		prwskey = &stainfo->dot118021x_UncstKey.skey[0];
>  
> -	prwskeylen = 16;
> -
>  	/* 4 start to encrypt each fragment */
>  	for (curfragnum = 0; curfragnum < pattrib->nr_frags; curfragnum++) {
>  		iv = pframe + pattrib->hdrlen;
> @@ -719,7 +716,6 @@ int rtw_tkip_decrypt23a(struct rtw_adapter *padapter,
>  	u32 actual_crc, expected_crc;
>  	struct arc4context mycontext;
>  	int length;
> -	u32 prwskeylen;
>  	u8 *pframe, *payload, *iv, *prwskey;
>  	union pn48 dot11txpn;
>  	struct sta_info *stainfo;
> @@ -749,12 +745,10 @@ int rtw_tkip_decrypt23a(struct rtw_adapter *padapter,
>  			goto exit;
>  		}
>  		prwskey = psecuritypriv->dot118021XGrpKey[prxattrib->key_index].skey;
> -		prwskeylen = 16;
>  	} else {
>  		RT_TRACE(_module_rtl871x_security_c_, _drv_err_,
>  			 "%s: stainfo!= NULL!!!\n", __func__);
>  		prwskey = &stainfo->dot118021x_UncstKey.skey[0];
> -		prwskeylen = 16;
>  	}
>  
>  	iv = pframe + prxattrib->hdrlen;
> @@ -1288,7 +1282,6 @@ int rtw_aes_encrypt23a(struct rtw_adapter *padapter,
>  {	/* exclude ICV */
>  	/* Intermediate Buffers */
>  	int curfragnum, length;
> -	u32 prwskeylen;
>  	u8 *pframe, *prwskey;
>  	u8 hw_hdr_offset = 0;
>  	struct sta_info *stainfo;
> @@ -1335,8 +1328,6 @@ int rtw_aes_encrypt23a(struct rtw_adapter *padapter,
>  	else
>  		prwskey = &stainfo->dot118021x_UncstKey.skey[0];
>  
> -	prwskeylen = 16;
> -
>  	for (curfragnum = 0; curfragnum < pattrib->nr_frags; curfragnum++) {
>  		/* 4 the last fragment */
>  		if ((curfragnum + 1) == pattrib->nr_frags) {
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux