The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH v2] staging: rtl8723bs: Clean up unnecessary parentheses and braces
@ 2026-03-04 15:34 Eduard Bostina
  2026-03-04 15:44 ` Greg KH
  2026-03-04 15:53 ` Daniel Baluta
  0 siblings, 2 replies; 3+ messages in thread
From: Eduard Bostina @ 2026-03-04 15:34 UTC (permalink / raw)
  To: gregkh
  Cc: broonie, linux-staging, linux-kernel, daniel.baluta, simona.toaca,
	Eduard Bostina

Increase code readability and follow Linux kernel coding style by
removing unnecessary parentheses and braces.

This also fixes the following checkpatch.pl issues:
WARNING: Unnecessary parentheses - maybe == should be = ?
WARNING: braces {} are not necessary for any arm of this statement

Signed-off-by: Eduard Bostina <egbostina@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 1a52d3e1d285d..a1c2220ac476b 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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-03-04 15:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-04 15:34 [PATCH v2] staging: rtl8723bs: Clean up unnecessary parentheses and braces Eduard Bostina
2026-03-04 15:44 ` Greg KH
2026-03-04 15:53 ` Daniel Baluta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox