[PATCH] staging: rtl8723bs: fix braces {} not necessary and Unnecessary parentheses

Venkata Edara posted 1 patch 3 weeks, 2 days ago
drivers/staging/rtl8723bs/core/rtw_recv.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
[PATCH] staging: rtl8723bs: fix braces {} not necessary and Unnecessary parentheses
Posted by Venkata Edara 3 weeks, 2 days ago
This patch fixes a "braces {} not necessary and Unnecessary parentheses" warning found by checkpatch.pl
in core/rtw_recv.c.

Signed-off-by: Venkata Edara <venkata22a@gmail.com>
---
 drivers/staging/rtl8723bs/core/rtw_recv.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/rtl8723bs/core/rtw_recv.c b/drivers/staging/rtl8723bs/core/rtw_recv.c
index 337671b1211f..e564572e63e8 100644
--- a/drivers/staging/rtl8723bs/core/rtw_recv.c
+++ b/drivers/staging/rtl8723bs/core/rtw_recv.c
@@ -1339,11 +1339,10 @@ static signed int validate_recv_data_frame(struct adapter *adapter, union recv_f
 
 	}
 
-	if (ret == _FAIL) {
+	if (ret == _FAIL)
 		goto exit;
-	} else if (ret == RTW_RX_HANDLED) {
+	else if (ret == RTW_RX_HANDLED)
 		goto exit;
-	}
 
 
 	if (!psta) {
@@ -1593,7 +1592,7 @@ static signed int wlanhdr_to_ethhdr(union recv_frame *precvframe)
 	eth_type = ntohs(be_tmp); /* pattrib->ether_type */
 	pattrib->eth_type = eth_type;
 
-	if ((check_fwstate(pmlmepriv, WIFI_MP_STATE) == true)) {
+	if (check_fwstate(pmlmepriv, WIFI_MP_STATE) == true) {
 		ptr += rmv_len;
 		*ptr = 0x87;
 		*(ptr+1) = 0x12;
-- 
2.43.0