[OPW,kernel] staging: rtl8188eu: core: Removed unnecessary parenthesis.
diff mbox

Message ID 1414610996-11649-1-git-send-email-gulsah.1004@gmail.com
State New, archived
Headers show

Commit Message

Gulsah Kose Oct. 29, 2014, 7:29 p.m. UTC
This patch removes unnecessarry parenthesis in rtw_security.c by
using this coccinelle script:

@r1@
expression e1,e2;
@@
if
- ((e1 == e2))
+ (e1 == e2)
{...}

Signed-off-by: Gulsah Kose <gulsah.1004@gmail.com>
---
 drivers/staging/rtl8188eu/core/rtw_security.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Julia Lawall Oct. 29, 2014, 7:45 p.m. UTC | #1
Acked-by: Julia Lawall <julia.lawall@lip6.fr>

On Wed, 29 Oct 2014, Gulsah Kose wrote:

> This patch removes unnecessarry parenthesis in rtw_security.c by
> using this coccinelle script:
> 
> @r1@
> expression e1,e2;
> @@
> if
> - ((e1 == e2))
> + (e1 == e2)
> {...}
> 
> Signed-off-by: Gulsah Kose <gulsah.1004@gmail.com>
> ---
>  drivers/staging/rtl8188eu/core/rtw_security.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/staging/rtl8188eu/core/rtw_security.c b/drivers/staging/rtl8188eu/core/rtw_security.c
> index f9096a5..1baa98e 100644
> --- a/drivers/staging/rtl8188eu/core/rtw_security.c
> +++ b/drivers/staging/rtl8188eu/core/rtw_security.c
> @@ -1219,7 +1219,7 @@ u32	rtw_aes_encrypt(struct adapter *padapter, u8 *pxmitframe)
>  	pframe = ((struct xmit_frame *)pxmitframe)->buf_addr + hw_hdr_offset;
>  
>  	/* 4 start to encrypt each fragment */
> -	if ((pattrib->encrypt == _AES_)) {
> +	if (pattrib->encrypt == _AES_) {
>  		if (pattrib->psta)
>  			stainfo = pattrib->psta;
>  		else
> @@ -1460,7 +1460,7 @@ u32	rtw_aes_decrypt(struct adapter *padapter, u8 *precvframe)
>  	u32	res = _SUCCESS;
>  	pframe = (unsigned char *)((struct recv_frame *)precvframe)->rx_data;
>  	/* 4 start to encrypt each fragment */
> -	if ((prxattrib->encrypt == _AES_)) {
> +	if (prxattrib->encrypt == _AES_) {
>  		stainfo = rtw_get_stainfo(&padapter->stapriv, &prxattrib->ta[0]);
>  		if (stainfo != NULL) {
>  			RT_TRACE(_module_rtl871x_security_c_, _drv_err_, ("rtw_aes_decrypt: stainfo!= NULL!!!\n"));
> -- 
> 1.9.1
> 
> -- 
> 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.
>

Patch
diff mbox

diff --git a/drivers/staging/rtl8188eu/core/rtw_security.c b/drivers/staging/rtl8188eu/core/rtw_security.c
index f9096a5..1baa98e 100644
--- a/drivers/staging/rtl8188eu/core/rtw_security.c
+++ b/drivers/staging/rtl8188eu/core/rtw_security.c
@@ -1219,7 +1219,7 @@  u32	rtw_aes_encrypt(struct adapter *padapter, u8 *pxmitframe)
 	pframe = ((struct xmit_frame *)pxmitframe)->buf_addr + hw_hdr_offset;
 
 	/* 4 start to encrypt each fragment */
-	if ((pattrib->encrypt == _AES_)) {
+	if (pattrib->encrypt == _AES_) {
 		if (pattrib->psta)
 			stainfo = pattrib->psta;
 		else
@@ -1460,7 +1460,7 @@  u32	rtw_aes_decrypt(struct adapter *padapter, u8 *precvframe)
 	u32	res = _SUCCESS;
 	pframe = (unsigned char *)((struct recv_frame *)precvframe)->rx_data;
 	/* 4 start to encrypt each fragment */
-	if ((prxattrib->encrypt == _AES_)) {
+	if (prxattrib->encrypt == _AES_) {
 		stainfo = rtw_get_stainfo(&padapter->stapriv, &prxattrib->ta[0]);
 		if (stainfo != NULL) {
 			RT_TRACE(_module_rtl871x_security_c_, _drv_err_, ("rtw_aes_decrypt: stainfo!= NULL!!!\n"));